bcc icon indicating copy to clipboard operation
bcc copied to clipboard

[Generics] Unused nested generics unable to compile

Open thareh opened this issue 1 year ago • 1 comments

Good day,

Using the following code will cause a lot of compilation errors.

test.mod/generics.mod/generics.bmx

SuperStrict

Module Test.Generics

Framework BRL.Blitz
Import BRL.Collections

Type TTempMap<K, V>
	
	Field map:TTreeMap<K, V> = New TTreeMap<K, V>()
	
EndType

example.bmx

SuperStrict

Framework BRL.Blitz
Import BRL.StandardIO
Import Test.Generics

Local map:TTempMap<String, String> = New TTempMap<String, String>()

'If map.map
'	Print 1
'EndIf

Print "DONE"

If you uncomment the if-block it works.

Thanks!

thareh avatar Apr 26 '23 12:04 thareh