mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 13:40:11 +03:00
Avoid phobos path using #16587 fix
This commit is contained in:
parent
913e9f537f
commit
e732128a11
3 changed files with 8 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
||||||
/*
|
/*
|
||||||
EXTRA_FILES: imports/a18243.d
|
EXTRA_FILES: imports/a18243.d imports/b18243.d
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail18243.d(17): Error: none of the overloads of `isNaN` are callable using argument types `!()(float)`
|
fail_compilation/fail18243.d(17): Error: none of the overloads of `isNaN` are callable using argument types `!()(float)`
|
||||||
/home/nick/git/dmd/compiler/test/../../../phobos/std/math/traits.d(31): Candidates are: `isNaN(X)(X x)`
|
fail_compilation/imports/b18243.d(3): Candidates are: `isNaN(T)(T x)`
|
||||||
fail_compilation/imports/a18243.d(5): `a18243.isNaN()`
|
fail_compilation/imports/a18243.d(5): `imports.a18243.isNaN()`
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
module a18243;
|
module imports.a18243;
|
||||||
|
|
||||||
import std.math : isNaN;
|
import imports.b18243 : isNaN;
|
||||||
|
|
||||||
public bool isNaN() { return false; }
|
public bool isNaN() { return false; }
|
||||||
|
|
3
compiler/test/fail_compilation/imports/b18243.d
Normal file
3
compiler/test/fail_compilation/imports/b18243.d
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
module imports.b18243;
|
||||||
|
|
||||||
|
bool isNaN(T)(T x) { return false; }
|
Loading…
Add table
Add a link
Reference in a new issue