Skip to content

Commit

Permalink
fix Issue 12910 - [AA] rehash is incorrectly inferred as strongly p…
Browse files Browse the repository at this point in the history
…ure for some associative arrays
  • Loading branch information
9rnsr committed Jun 14, 2014
1 parent 20feb28 commit fd44afb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/compilable/warn3882.d
Expand Up @@ -59,4 +59,8 @@ void test12909()
{
immutable(int[])[int] aa;
f12909(aa);

// from 12910
const(int[])[int] makeAA() { return null; } // to make r-value
makeAA().rehash();
}

0 comments on commit fd44afb

Please sign in to comment.