Strange Error: $SOURCE<10603> : Internal error

Monkey Forums/Monkey Programming/Strange Error: $SOURCE<10603> : Internal error

Rone(Posted 2012) [#1]
Hi,

I get the following error in combination with templates, but cant reproduce in a test project..

TRANS monkey compiler V1.30
Parsing...
Semanting...
$SOURCE<10603> : Internal error
Monkey runtime error: $SOURCE<10603> : Internal error

Compilation without errors!


No files in .build were created...

Edit:
Seems like a bug since the error occurs only if reflection is imported and if NEW template parameters are used^^

For example, the following line causes the error:
Field _mouseMoveEvent := new List<EventHandler<MouseEventArgs>>

If I declare a dummy class before:
Class MouseEventHandler Extends EventHandler<MouseEventArgs>
End

...everything works as expected?!?!

Did I miss something, or how such a behavior can be explained?

Best Regards


marksibly(Posted 2012) [#2]
Hi,

Can you post some runnable code?

This works here:

Import reflection

Class C
End

Function Main()

	Local t:=New List<Stack<C>>
	
	t.AddLast New Stack<C>
	
	t.Last.Push New C

End