Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Foo
- {
- int x;
- }
- Foo[] foos;
- int[int] baz;
- void main()
- {
- foreach (foo; foos)
- {
- baz[foo.baz] = 5;
- }
- }
- test.d(14): Error: function expected before (), not baz of type int[int]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement