mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 05:30:13 +03:00
Move dmd files into compiler/
This commit is contained in:
parent
20bd0cacbd
commit
6374bb87b7
4579 changed files with 4 additions and 4 deletions
35
compiler/test/fail_compilation/nestedtempl0.d
Normal file
35
compiler/test/fail_compilation/nestedtempl0.d
Normal file
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
TEST_OUTPUT:
|
||||
---
|
||||
fail_compilation/nestedtempl0.d(18): Error: class `nestedtempl0.K.D!(1, B!(a)).D` doesn't need a frame pointer, but super class `B` needs the frame pointer of `main`
|
||||
fail_compilation/nestedtempl0.d(28): Error: template instance `nestedtempl0.K.D!(1, B!(a))` error instantiating
|
||||
fail_compilation/nestedtempl0.d(18): Error: class `nestedtempl0.main.fun.D!(b, B!(a)).D` needs the frame pointer of `fun`, but super class `B` needs the frame pointer of `main`
|
||||
fail_compilation/nestedtempl0.d(33): Error: template instance `nestedtempl0.main.fun.D!(b, B!(a))` error instantiating
|
||||
---
|
||||
*/
|
||||
|
||||
class K
|
||||
{
|
||||
class B(alias a)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
class D(alias a, T) : T
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
int a;
|
||||
auto k = new K;
|
||||
auto d = k.new K.D!(1, K.B!a);
|
||||
|
||||
auto fun()
|
||||
{
|
||||
int b;
|
||||
auto o = k.new K.D!(b, K.B!a);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue