Skip to content

Commit

Permalink
Fix Issue 14739 - Immutable alias to template triggers dmd assert
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw committed Jul 1, 2018
1 parent 61383c3 commit 484c9db
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/compilable/ice14739.d
@@ -0,0 +1,19 @@
// REQUIRED_ARGS: -o-

void main(string[] args)
{
immutable int a;
immutable int b;
S!a sa;
S!b sb;
C!a ca;
C!b cb;
}

struct S(alias a)
{
}

class C(alias a)
{
}

0 comments on commit 484c9db

Please sign in to comment.