Skip to content

Instantly share code, notes, and snippets.

@jblachly
Created November 17, 2019 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jblachly/78c5762bbfea65b09e7a1417ad763019 to your computer and use it in GitHub Desktop.
Save jblachly/78c5762bbfea65b09e7a1417ad763019 to your computer and use it in GitHub Desktop.
druntime regression
import std;
struct B
{
int[int] xx;
}
struct A
{
B b;
}
void main()
{
shared A a;
a.b.xx[1] = 2;
a.b.xx[2] = 4;
a.b.xx[4] = 8;
foreach(int k; a.b.xx.keys)
writeln(k);
foreach(int v; a.b.xx.values)
writeln(v);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment