|
It should be x = a.MyClass(a, b), and makes an error (because there is no MyClass in a), the correct way to write it:local x = (a:MyClass)(b:MyAnotherClass)It's just like "foo":format() is an error, you must write ("foo"):format()and, you want call a as a function? why you need type annotation in this case?