*** This issue has been marked as a duplicate of issue 17630 ***
Comment #3 by greensunny12 — 2018-01-17T09:40:58Z
I'm re-opening this as its slightly different to 17630 and it's probably worthwhile to add both tests to the testsuite once this gets fixed.
Comment #4 by razvan.nitu1305 — 2018-01-22T13:27:15Z
The problem here is that overload sets do not have a protection attribute. Moreover the symbolIsVisible function in the compiler takes a symbol and then checks if the most visible overload of that particular overload set is visible.
This, obviously is problematic, since in this case std.math.isNaN is found and when the check for visibility is made the public overload is considered.
Comment #5 by razvan.nitu1305 — 2018-01-23T16:33:29Z