mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Show type location for 'no property' error (#15586)
* Show type location for 'no property' error * Remove local path from test output
This commit is contained in:
parent
a11758fb69
commit
56b14c11ff
35 changed files with 154 additions and 89 deletions
|
@ -2129,7 +2129,9 @@ Expression getProperty(Type t, Scope* scope_, const ref Loc loc, Identifier iden
|
||||||
error(loc, "no property `%s` for `%s` of type `%s`", ident.toChars(), src.toChars(), mt.toPrettyChars(true));
|
error(loc, "no property `%s` for `%s` of type `%s`", ident.toChars(), src.toChars(), mt.toPrettyChars(true));
|
||||||
else
|
else
|
||||||
error(loc, "no property `%s` for type `%s`", ident.toChars(), mt.toPrettyChars(true));
|
error(loc, "no property `%s` for type `%s`", ident.toChars(), mt.toPrettyChars(true));
|
||||||
|
|
||||||
if (auto dsym = mt.toDsymbol(scope_))
|
if (auto dsym = mt.toDsymbol(scope_))
|
||||||
|
{
|
||||||
if (auto sym = dsym.isAggregateDeclaration())
|
if (auto sym = dsym.isAggregateDeclaration())
|
||||||
{
|
{
|
||||||
if (auto fd = search_function(sym, Id.opDispatch))
|
if (auto fd = search_function(sym, Id.opDispatch))
|
||||||
|
@ -2137,6 +2139,9 @@ Expression getProperty(Type t, Scope* scope_, const ref Loc loc, Identifier iden
|
||||||
else if (!sym.members)
|
else if (!sym.members)
|
||||||
errorSupplemental(sym.loc, "`%s %s` is opaque and has no members.", sym.kind, mt.toPrettyChars(true));
|
errorSupplemental(sym.loc, "`%s %s` is opaque and has no members.", sym.kind, mt.toPrettyChars(true));
|
||||||
}
|
}
|
||||||
|
errorSupplemental(dsym.loc, "%s `%s` defined here",
|
||||||
|
dsym.kind, dsym.toChars());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
e = ErrorExp.get();
|
e = ErrorExp.get();
|
||||||
|
@ -3940,6 +3945,8 @@ Expression dotExp(Type mt, Scope* sc, Expression e, Identifier ident, DotExpFlag
|
||||||
e.error("no property `%s` for type `%s`", ident.toChars(),
|
e.error("no property `%s` for type `%s`", ident.toChars(),
|
||||||
mt.toChars());
|
mt.toChars());
|
||||||
|
|
||||||
|
errorSupplemental(mt.sym.loc, "%s `%s` defined here",
|
||||||
|
mt.sym.kind, mt.toChars());
|
||||||
return ErrorExp.get();
|
return ErrorExp.get();
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
EXTRA_FILES: imports/a10169.d
|
EXTRA_FILES: imports/a10169.d
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/diag10169.d(12): Error: no property `x` for `B(0)` of type `imports.a10169.B`
|
fail_compilation/diag10169.d(13): Error: no property `x` for `B(0)` of type `imports.a10169.B`
|
||||||
|
fail_compilation/imports/a10169.d(3): struct `B` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
import imports.a10169;
|
import imports.a10169;
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/diag10783.d(14): Error: no property `type` for `event` of type `diag10783.Event`
|
fail_compilation/diag10783.d(15): Error: no property `type` for `event` of type `diag10783.Event`
|
||||||
fail_compilation/diag10783.d(14): Error: undefined identifier `En`
|
fail_compilation/diag10783.d(10): struct `Event` defined here
|
||||||
|
fail_compilation/diag10783.d(15): Error: undefined identifier `En`
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/diag14145.d(15): Error: no property `i` for `_` of type `diag14145.main.Capture!(i)`
|
fail_compilation/diag14145.d(16): Error: no property `i` for `_` of type `diag14145.main.Capture!(i)`
|
||||||
fail_compilation/diag14145.d(15): potentially malformed `opDispatch`. Use an explicit instantiation to get a better error message
|
fail_compilation/diag14145.d(16): potentially malformed `opDispatch`. Use an explicit instantiation to get a better error message
|
||||||
fail_compilation/diag14145.d(34): Error: expression `*this.ptr` of type `shared(int)` is not implicitly convertible to return type `ref int`
|
fail_compilation/diag14145.d(26): struct `Capture` defined here
|
||||||
fail_compilation/diag14145.d(16): Error: template instance `diag14145.main.Capture!(i).Capture.opDispatch!"i"` error instantiating
|
fail_compilation/diag14145.d(35): Error: expression `*this.ptr` of type `shared(int)` is not implicitly convertible to return type `ref int`
|
||||||
|
fail_compilation/diag14145.d(17): Error: template instance `diag14145.main.Capture!(i).Capture.opDispatch!"i"` error instantiating
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/diag15713.d(19): Error: no property `widthSign` for `this` of type `diag15713.WrData.Data`
|
fail_compilation/diag15713.d(20): Error: no property `widthSign` for `this` of type `diag15713.WrData.Data`
|
||||||
fail_compilation/diag15713.d(39): Error: template instance `diag15713.conwritefImpl!("parse-int", "width", "\n", Data(null))` error instantiating
|
fail_compilation/diag15713.d(16): struct `Data` defined here
|
||||||
fail_compilation/diag15713.d(44): instantiated from here: `conwritefImpl!("main", "\n", Data(null))`
|
fail_compilation/diag15713.d(40): Error: template instance `diag15713.conwritefImpl!("parse-int", "width", "\n", Data(null))` error instantiating
|
||||||
fail_compilation/diag15713.d(49): instantiated from here: `fdwritef!()`
|
fail_compilation/diag15713.d(45): instantiated from here: `conwritefImpl!("main", "\n", Data(null))`
|
||||||
|
fail_compilation/diag15713.d(50): instantiated from here: `fdwritef!()`
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/diag3913.d(12): Error: no property `foobardoo` for type `Foo`
|
fail_compilation/diag3913.d(14): Error: no property `foobardoo` for type `Foo`
|
||||||
fail_compilation/diag3913.d(13): Error: no property `secon` for type `Foo`. Did you mean `Foo.second` ?
|
fail_compilation/diag3913.d(13): enum `Foo` defined here
|
||||||
|
fail_compilation/diag3913.d(15): Error: no property `secon` for type `Foo`. Did you mean `Foo.second` ?
|
||||||
|
fail_compilation/diag3913.d(13): enum `Foo` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -2,14 +2,22 @@
|
||||||
EXTRA_FILES: imports/fail5385.d
|
EXTRA_FILES: imports/fail5385.d
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/diag5385.d(20): Error: no property `privX` for type `imports.fail5385.C`
|
fail_compilation/diag5385.d(28): Error: no property `privX` for type `imports.fail5385.C`
|
||||||
fail_compilation/diag5385.d(21): Error: no property `packX` for type `imports.fail5385.C`
|
fail_compilation/imports/fail5385.d(3): class `C` defined here
|
||||||
fail_compilation/diag5385.d(22): Error: no property `privX2` for type `imports.fail5385.C`
|
fail_compilation/diag5385.d(29): Error: no property `packX` for type `imports.fail5385.C`
|
||||||
fail_compilation/diag5385.d(23): Error: no property `packX2` for type `imports.fail5385.C`
|
fail_compilation/imports/fail5385.d(3): class `C` defined here
|
||||||
fail_compilation/diag5385.d(24): Error: no property `privX` for type `imports.fail5385.S`
|
fail_compilation/diag5385.d(30): Error: no property `privX2` for type `imports.fail5385.C`
|
||||||
fail_compilation/diag5385.d(25): Error: no property `packX` for type `imports.fail5385.S`
|
fail_compilation/imports/fail5385.d(3): class `C` defined here
|
||||||
fail_compilation/diag5385.d(26): Error: no property `privX2` for type `imports.fail5385.S`
|
fail_compilation/diag5385.d(31): Error: no property `packX2` for type `imports.fail5385.C`
|
||||||
fail_compilation/diag5385.d(27): Error: no property `packX2` for type `imports.fail5385.S`
|
fail_compilation/imports/fail5385.d(3): class `C` defined here
|
||||||
|
fail_compilation/diag5385.d(32): Error: no property `privX` for type `imports.fail5385.S`
|
||||||
|
fail_compilation/imports/fail5385.d(11): struct `S` defined here
|
||||||
|
fail_compilation/diag5385.d(33): Error: no property `packX` for type `imports.fail5385.S`
|
||||||
|
fail_compilation/imports/fail5385.d(11): struct `S` defined here
|
||||||
|
fail_compilation/diag5385.d(34): Error: no property `privX2` for type `imports.fail5385.S`
|
||||||
|
fail_compilation/imports/fail5385.d(11): struct `S` defined here
|
||||||
|
fail_compilation/diag5385.d(35): Error: no property `packX2` for type `imports.fail5385.S`
|
||||||
|
fail_compilation/imports/fail5385.d(11): struct `S` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/diag8697.d(10): Error: no property `Invalid` for type `diag8697.Base`
|
fail_compilation/diag8697.d(11): Error: no property `Invalid` for type `diag8697.Base`
|
||||||
|
fail_compilation/diag8697.d(9): class `Base` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
interface InterBase : InterRoot { }
|
interface InterBase : InterRoot { }
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/diag8894.d(16): Error: no property `x` for `f` of type `diag8894.Foo`
|
fail_compilation/diag8894.d(20): Error: no property `x` for `f` of type `diag8894.Foo`
|
||||||
fail_compilation/diag8894.d(17): Error: no property `y` for `f` of type `diag8894.Foo`
|
fail_compilation/diag8894.d(15): struct `Foo` defined here
|
||||||
fail_compilation/diag8894.d(18): Error: no property `x` for `f` of type `diag8894.Foo`
|
fail_compilation/diag8894.d(21): Error: no property `y` for `f` of type `diag8894.Foo`
|
||||||
fail_compilation/diag8894.d(19): Error: no property `x` for `f` of type `diag8894.Foo`
|
fail_compilation/diag8894.d(15): struct `Foo` defined here
|
||||||
|
fail_compilation/diag8894.d(22): Error: no property `x` for `f` of type `diag8894.Foo`
|
||||||
|
fail_compilation/diag8894.d(15): struct `Foo` defined here
|
||||||
|
fail_compilation/diag8894.d(23): Error: no property `x` for `f` of type `diag8894.Foo`
|
||||||
|
fail_compilation/diag8894.d(15): struct `Foo` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,13 @@
|
||||||
EXTRA_FILES: imports/dip22a.d
|
EXTRA_FILES: imports/dip22a.d
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/dip22a.d(16): Error: no property `bar` for `new Klass` of type `imports.dip22a.Klass`
|
fail_compilation/dip22a.d(18): Error: no property `bar` for `new Klass` of type `imports.dip22a.Klass`
|
||||||
fail_compilation/dip22a.d(17): Error: no property `bar` for `Struct()` of type `imports.dip22a.Struct`
|
fail_compilation/imports/dip22a.d(3): class `Klass` defined here
|
||||||
fail_compilation/dip22a.d(18): Error: undefined identifier `bar` in module `imports.dip22a`
|
fail_compilation/dip22a.d(19): Error: no property `bar` for `Struct()` of type `imports.dip22a.Struct`
|
||||||
fail_compilation/dip22a.d(19): Error: no property `bar` for `Template!int` of type `void`
|
fail_compilation/imports/dip22a.d(8): struct `Struct` defined here
|
||||||
fail_compilation/dip22a.d(20): Error: no property `bar` for `12` of type `int`
|
fail_compilation/dip22a.d(20): Error: undefined identifier `bar` in module `imports.dip22a`
|
||||||
|
fail_compilation/dip22a.d(21): Error: no property `bar` for `Template!int` of type `void`
|
||||||
|
fail_compilation/dip22a.d(22): Error: no property `bar` for `12` of type `int`
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
import imports.dip22a;
|
import imports.dip22a;
|
||||||
|
|
|
@ -2,14 +2,18 @@
|
||||||
EXTRA_FILES: imports/a10528.d
|
EXTRA_FILES: imports/a10528.d
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail10528.d(20): Error: undefined identifier `a`
|
fail_compilation/fail10528.d(24): Error: undefined identifier `a`
|
||||||
fail_compilation/fail10528.d(21): Error: undefined identifier `a` in module `a10528`
|
fail_compilation/fail10528.d(25): Error: undefined identifier `a` in module `a10528`
|
||||||
fail_compilation/fail10528.d(23): Error: undefined identifier `b`
|
fail_compilation/fail10528.d(27): Error: undefined identifier `b`
|
||||||
fail_compilation/fail10528.d(24): Error: undefined identifier `b` in module `a10528`
|
fail_compilation/fail10528.d(28): Error: undefined identifier `b` in module `a10528`
|
||||||
fail_compilation/fail10528.d(26): Error: no property `c` for type `a10528.S`
|
fail_compilation/fail10528.d(30): Error: no property `c` for type `a10528.S`
|
||||||
fail_compilation/fail10528.d(27): Error: no property `c` for type `a10528.S`
|
fail_compilation/imports/a10528.d(4): struct `S` defined here
|
||||||
fail_compilation/fail10528.d(29): Error: no property `d` for type `a10528.C`
|
fail_compilation/fail10528.d(31): Error: no property `c` for type `a10528.S`
|
||||||
fail_compilation/fail10528.d(30): Error: no property `d` for type `a10528.C`
|
fail_compilation/imports/a10528.d(4): struct `S` defined here
|
||||||
|
fail_compilation/fail10528.d(33): Error: no property `d` for type `a10528.C`
|
||||||
|
fail_compilation/imports/a10528.d(5): class `C` defined here
|
||||||
|
fail_compilation/fail10528.d(34): Error: no property `d` for type `a10528.C`
|
||||||
|
fail_compilation/imports/a10528.d(5): class `C` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,9 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail121.d(23): Error: no property `typeinfo` for `list[1]` of type `fail121.myobject`
|
fail_compilation/fail121.d(24): Error: no property `typeinfo` for `list[1]` of type `fail121.myobject`
|
||||||
fail_compilation/fail121.d(23): Error: no property `typeinfo` for `i` of type `int`
|
fail_compilation/fail121.d(12): struct `myobject` defined here
|
||||||
|
fail_compilation/fail121.d(24): Error: no property `typeinfo` for `i` of type `int`
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* TEST_OUTPUT:
|
/* TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail17969.d(9): Error: no property `sum` for type `fail17969.__lambda6!(int[]).__lambda6.MapResult2!((b) => b)`
|
fail_compilation/fail17969.d(10): Error: no property `sum` for type `fail17969.__lambda6!(int[]).__lambda6.MapResult2!((b) => b)`
|
||||||
|
fail_compilation/fail17969.d(16): struct `MapResult2` defined here
|
||||||
---
|
---
|
||||||
* https://issues.dlang.org/show_bug.cgi?id=17969
|
* https://issues.dlang.org/show_bug.cgi?id=17969
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -3,10 +3,11 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail18219.d(16): Error: no property `Foobar` for type `AST`, did you mean `b18219.Foobar`?
|
fail_compilation/fail18219.d(17): Error: no property `Foobar` for type `AST`, did you mean `b18219.Foobar`?
|
||||||
fail_compilation/fail18219.d(17): Error: no property `Bar` for type `a18219.AST`
|
fail_compilation/fail18219.d(18): Error: no property `Bar` for type `a18219.AST`
|
||||||
fail_compilation/fail18219.d(18): Error: no property `fun` for type `AST`, did you mean `b18219.fun`?
|
fail_compilation/imports/a18219.d(3): struct `AST` defined here
|
||||||
fail_compilation/fail18219.d(19): Error: no property `Foobar` for type `AST`, did you mean `b18219.Foobar`?
|
fail_compilation/fail18219.d(19): Error: no property `fun` for type `AST`, did you mean `b18219.fun`?
|
||||||
|
fail_compilation/fail18219.d(20): Error: no property `Foobar` for type `AST`, did you mean `b18219.Foobar`?
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
import imports.a18219;
|
import imports.a18219;
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail18892.d(20): Error: no property `foo` for `a` of type `fail18892.MT`
|
fail_compilation/fail18892.d(22): Error: no property `foo` for `a` of type `fail18892.MT`
|
||||||
fail_compilation/fail18892.d(21): Error: no property `foo` for `MT` of type `fail18892.MT`
|
fail_compilation/fail18892.d(13): struct `MT` defined here
|
||||||
|
fail_compilation/fail18892.d(23): Error: no property `foo` for `MT` of type `fail18892.MT`
|
||||||
|
fail_compilation/fail18892.d(13): struct `MT` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail18970.d(24): Error: no property `y` for `S()` of type `fail18970.S`
|
fail_compilation/fail18970.d(26): Error: no property `y` for `S()` of type `fail18970.S`
|
||||||
fail_compilation/fail18970.d(24): potentially malformed `opDispatch`. Use an explicit instantiation to get a better error message
|
fail_compilation/fail18970.d(26): potentially malformed `opDispatch`. Use an explicit instantiation to get a better error message
|
||||||
fail_compilation/fail18970.d(31): Error: no property `yyy` for `this` of type `fail18970.S2`
|
fail_compilation/fail18970.d(15): struct `S` defined here
|
||||||
fail_compilation/fail18970.d(31): potentially malformed `opDispatch`. Use an explicit instantiation to get a better error message
|
fail_compilation/fail18970.d(33): Error: no property `yyy` for `this` of type `fail18970.S2`
|
||||||
|
fail_compilation/fail18970.d(33): potentially malformed `opDispatch`. Use an explicit instantiation to get a better error message
|
||||||
|
fail_compilation/fail18970.d(29): struct `S2` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail18979.d(13): Error: no property `__ctor` for `Foo()` of type `imports.imp18979.Foo`
|
fail_compilation/fail18979.d(14): Error: no property `__ctor` for `Foo()` of type `imports.imp18979.Foo`
|
||||||
|
fail_compilation/imports/imp18979.d(3): struct `Foo` defined here
|
||||||
----
|
----
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail19076.d(11): Error: no property `V` for type `fail19076.I`
|
fail_compilation/fail19076.d(12): Error: no property `V` for type `fail19076.I`
|
||||||
fail_compilation/fail19076.d(11): Error: `(I).V` cannot be resolved
|
fail_compilation/fail19076.d(11): interface `I` defined here
|
||||||
|
fail_compilation/fail19076.d(12): Error: `(I).V` cannot be resolved
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail19103.d(12): Error: no property `puts` for `new C` of type `fail19103.C`
|
fail_compilation/fail19103.d(14): Error: no property `puts` for `new C` of type `fail19103.C`
|
||||||
fail_compilation/fail19103.d(14): Error: no property `puts` for `s1` of type `fail19103.S1`
|
fail_compilation/fail19103.d(26): class `C` defined here
|
||||||
fail_compilation/fail19103.d(16): Error: no property `puts` for type `S2`, did you mean `core.stdc.stdio.puts`?
|
fail_compilation/fail19103.d(16): Error: no property `puts` for `s1` of type `fail19103.S1`
|
||||||
|
fail_compilation/fail19103.d(30): struct `S1` defined here
|
||||||
|
fail_compilation/fail19103.d(18): Error: no property `puts` for type `S2`, did you mean `core.stdc.stdio.puts`?
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
EXTRA_FILES: imports/fail20637b.d
|
EXTRA_FILES: imports/fail20637b.d
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail20637.d(12): Error: no property `foo` for type `imports.fail20637b.A`
|
fail_compilation/fail20637.d(13): Error: no property `foo` for type `imports.fail20637b.A`
|
||||||
|
fail_compilation/imports/fail20637b.d(3): class `A` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
module fail20637;
|
module fail20637;
|
||||||
|
|
|
@ -3,10 +3,12 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail22054.d(21): Error: no property `what` for type `fail22054.exception`
|
fail_compilation/fail22054.d(23): Error: no property `what` for type `fail22054.exception`
|
||||||
fail_compilation/fail22054.d(16): `class fail22054.exception` is opaque and has no members.
|
fail_compilation/fail22054.d(18): `class fail22054.exception` is opaque and has no members.
|
||||||
fail_compilation/fail22054.d(22): Error: no property `what` for type `fail22054.exception2`
|
fail_compilation/fail22054.d(18): class `exception` defined here
|
||||||
fail_compilation/fail22054.d(17): `struct fail22054.exception2` is opaque and has no members.
|
fail_compilation/fail22054.d(24): Error: no property `what` for type `fail22054.exception2`
|
||||||
|
fail_compilation/fail22054.d(19): `struct fail22054.exception2` is opaque and has no members.
|
||||||
|
fail_compilation/fail22054.d(19): struct `exception2` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,9 @@ EXTRA_SOURCES: extra-files/test23109/object.d
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
Error: no property `getHash` for `typeid(const(Ensure[]))` of type `object.TypeInfo_Const`
|
Error: no property `getHash` for `typeid(const(Ensure[]))` of type `object.TypeInfo_Const`
|
||||||
|
fail_compilation/extra-files/test23109/object.d(7): class `TypeInfo_Const` defined here
|
||||||
Error: no property `getHash` for `typeid(const(Ensure[1]))` of type `object.TypeInfo_Const`
|
Error: no property `getHash` for `typeid(const(Ensure[1]))` of type `object.TypeInfo_Const`
|
||||||
|
fail_compilation/extra-files/test23109/object.d(7): class `TypeInfo_Const` defined here
|
||||||
fail_compilation/imports/test23109a.d(10): Error: template instance `imports.test23109a.Array!(Ensure)` error instantiating
|
fail_compilation/imports/test23109a.d(10): Error: template instance `imports.test23109a.Array!(Ensure)` error instantiating
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail61.d(22): Error: no property `B` for type `fail61.A.B`
|
fail_compilation/fail61.d(25): Error: no property `B` for type `fail61.A.B`
|
||||||
fail_compilation/fail61.d(23): Error: no property `B` for type `fail61.A.B`
|
fail_compilation/fail61.d(16): class `B` defined here
|
||||||
fail_compilation/fail61.d(32): Error: no property `A2` for type `fail61.B2`
|
fail_compilation/fail61.d(26): Error: no property `B` for type `fail61.A.B`
|
||||||
fail_compilation/fail61.d(41): Error: calling non-static function `foo` requires an instance of type `B3`
|
fail_compilation/fail61.d(16): class `B` defined here
|
||||||
|
fail_compilation/fail61.d(35): Error: no property `A2` for type `fail61.B2`
|
||||||
|
fail_compilation/fail61.d(30): class `B2` defined here
|
||||||
|
fail_compilation/fail61.d(44): Error: calling non-static function `foo` requires an instance of type `B3`
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail7861.d(17): Error: no property `nonexistent` for type `test.B`
|
fail_compilation/fail7861.d(18): Error: no property `nonexistent` for type `test.B`
|
||||||
|
fail_compilation/fail7861.d(14): struct `B` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
module test;
|
module test;
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/fail9.d(23): Error: no property `Vector` for type `fail9.Vector!int`
|
fail_compilation/fail9.d(24): Error: no property `Vector` for type `fail9.Vector!int`
|
||||||
|
fail_compilation/fail9.d(13): class `Vector` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/faildottypeinfo.d(11): Error: no property `typeinfo` for `0` of type `int`
|
fail_compilation/faildottypeinfo.d(12): Error: no property `typeinfo` for `0` of type `int`
|
||||||
fail_compilation/faildottypeinfo.d(12): Error: no property `typeinfo` for type `object.Object`
|
fail_compilation/faildottypeinfo.d(13): Error: no property `typeinfo` for type `object.Object`
|
||||||
|
$p:druntime/import/object.d$($n$): class `Object` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/ice10713.d(10): Error: no property `nonExistingField` for type `ice10713.S`
|
fail_compilation/ice10713.d(11): Error: no property `nonExistingField` for type `ice10713.S`
|
||||||
|
fail_compilation/ice10713.d(9): struct `S` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/ice10938.d(13): Error: no property `opts` for `this` of type `ice10938.C`
|
fail_compilation/ice10938.d(14): Error: no property `opts` for `this` of type `ice10938.C`
|
||||||
fail_compilation/ice10938.d(13): potentially malformed `opDispatch`. Use an explicit instantiation to get a better error message
|
fail_compilation/ice10938.d(14): potentially malformed `opDispatch`. Use an explicit instantiation to get a better error message
|
||||||
|
fail_compilation/ice10938.d(10): class `C` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/ice8100.d(10): Error: no property `Q` for type `ice8100.Bar!bool`
|
fail_compilation/ice8100.d(11): Error: no property `Q` for type `ice8100.Bar!bool`
|
||||||
fail_compilation/ice8100.d(11): Error: template instance `ice8100.Foo!(Bar!bool)` error instantiating
|
fail_compilation/ice8100.d(12): class `Bar` defined here
|
||||||
fail_compilation/ice8100.d(12): instantiated from here: `Bar!bool`
|
fail_compilation/ice8100.d(12): Error: template instance `ice8100.Foo!(Bar!bool)` error instantiating
|
||||||
|
fail_compilation/ice8100.d(13): instantiated from here: `Bar!bool`
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,9 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/test15785.d(16): Error: no property `foo` for `super` of type `imports.test15785.Base`
|
fail_compilation/test15785.d(17): Error: no property `foo` for `super` of type `imports.test15785.Base`
|
||||||
fail_compilation/test15785.d(17): Error: undefined identifier `bar`
|
fail_compilation/imports/test15785.d(3): class `Base` defined here
|
||||||
|
fail_compilation/test15785.d(18): Error: undefined identifier `bar`
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
/*
|
/*
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/test15897.d(19): Error: no property `create` for `cat` of type `imports.test15897.Cat`
|
fail_compilation/test15897.d(20): Error: no property `create` for `cat` of type `imports.test15897.Cat`
|
||||||
|
fail_compilation/imports/test15897.d(4): class `Cat` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
module test15897;
|
module test15897;
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
---
|
---
|
||||||
fail_compilation/test16188.d(101): Error: no property `name` for `Where()` of type `test16188.Where`
|
fail_compilation/test16188.d(101): Error: no property `name` for `Where()` of type `test16188.Where`
|
||||||
fail_compilation/test16188.d(101): potentially malformed `opDispatch`. Use an explicit instantiation to get a better error message
|
fail_compilation/test16188.d(101): potentially malformed `opDispatch`. Use an explicit instantiation to get a better error message
|
||||||
|
fail_compilation/test16188.d(103): struct `Where` defined here
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
/* REQUIRED_ARGS: -verrors=spec
|
/* REQUIRED_ARGS: -verrors=spec
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
(spec:1) fail_compilation/test17380spec.d(14): Error: cannot resolve identifier `ThisTypeDoesNotExistAndCrashesTheCompiler`
|
(spec:1) fail_compilation/test17380spec.d(15): Error: cannot resolve identifier `ThisTypeDoesNotExistAndCrashesTheCompiler`
|
||||||
(spec:1) fail_compilation/test17380spec.d(14): Error: no property `ThisTypeDoesNotExistAndCrashesTheCompiler` for `this.opCast()` of type `test17380spec.Uint128`
|
(spec:1) fail_compilation/test17380spec.d(15): Error: no property `ThisTypeDoesNotExistAndCrashesTheCompiler` for `this.opCast()` of type `test17380spec.Uint128`
|
||||||
fail_compilation/test17380spec.d(14): Error: undefined identifier `ThisTypeDoesNotExistAndCrashesTheCompiler`
|
(spec:1) fail_compilation/test17380spec.d(20): struct `Uint128` defined here
|
||||||
|
fail_compilation/test17380spec.d(15): Error: undefined identifier `ThisTypeDoesNotExistAndCrashesTheCompiler`
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,14 @@
|
||||||
EXTRA_FILES: imports/imp21353.d
|
EXTRA_FILES: imports/imp21353.d
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/test21353.d(19): Error: no property `A` for type `imports.imp21353.B`
|
fail_compilation/test21353.d(22): Error: no property `A` for type `imports.imp21353.B`
|
||||||
fail_compilation/test21353.d(20): Error: no property `A` for type `imports.imp21353.B`
|
fail_compilation/imports/imp21353.d(5): struct `B` defined here
|
||||||
fail_compilation/test21353.d(21): Error: no property `A` for type `imports.imp21353.B`
|
fail_compilation/test21353.d(23): Error: no property `A` for type `imports.imp21353.B`
|
||||||
fail_compilation/test21353.d(23): Error: undefined identifier `P` in module `imports.imp21353`
|
fail_compilation/imports/imp21353.d(5): struct `B` defined here
|
||||||
fail_compilation/test21353.d(24): Error: undefined identifier `P` in module `imports.imp21353`
|
fail_compilation/test21353.d(24): Error: no property `A` for type `imports.imp21353.B`
|
||||||
|
fail_compilation/imports/imp21353.d(5): struct `B` defined here
|
||||||
|
fail_compilation/test21353.d(26): Error: undefined identifier `P` in module `imports.imp21353`
|
||||||
|
fail_compilation/test21353.d(27): Error: undefined identifier `P` in module `imports.imp21353`
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
TEST_OUTPUT:
|
TEST_OUTPUT:
|
||||||
---
|
---
|
||||||
fail_compilation/imports/imp22329.d(3): Error: no property `values` for type `test22329.Foo`
|
fail_compilation/imports/imp22329.d(3): Error: no property `values` for type `test22329.Foo`
|
||||||
|
fail_compilation/test22329.d(13): struct `Foo` defined here
|
||||||
fail_compilation/imports/imp22329.d(3): Error: incompatible types for `(arg) + (1)`: `Foo` and `int`
|
fail_compilation/imports/imp22329.d(3): Error: incompatible types for `(arg) + (1)`: `Foo` and `int`
|
||||||
fail_compilation/test22329.d(20): Error: template instance `imp22329.func!(Foo)` error instantiating
|
fail_compilation/test22329.d(21): Error: template instance `imp22329.func!(Foo)` error instantiating
|
||||||
---
|
---
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue