Mono-D icon indicating copy to clipboard operation
Mono-D copied to clipboard

no auto completion for keytype in AA

Open extrawurst opened this issue 12 years ago • 5 comments

int[MyType] foo;

There is no auto completion coming up for the type of the key of the associative array

extrawurst avatar Nov 02 '13 14:11 extrawurst

Also when MyType is a enum and I want to set an entry in the aa like this:

foo[MyType.enumMember] = 2;

there is no completion for this either.

extrawurst avatar Nov 02 '13 14:11 extrawurst

Parametervervollständigung innerhalb von index-expressions funktioniert noch nicht.

aBothe avatar Nov 02 '13 18:11 aBothe

ok.. und was funktionuckelt dann jetzt ? die completion des keytypes in der declaration des AA ?

extrawurst avatar Nov 02 '13 22:11 extrawurst

beides sollte jetzt klappen. Nur klappt das oben angegebene nicht - das hast du aber bislang noch nicht bemerkt :P

aBothe avatar Nov 03 '13 03:11 aBothe

im irc hatten wir noch vom fall gesprochen inplace ein array zu initialisieren:

auto foo = [a,b,c];

extrawurst avatar Nov 03 '13 21:11 extrawurst