Swapped pointers to the other side for types to prevent ambiguity, i.e. *int instead of int*
This commit is contained in:
@@ -2,7 +2,7 @@ import io;
|
||||
|
||||
obj ClassWithConstructor {
|
||||
var data: int;
|
||||
fun construct(inData: int): ClassWithConstructor* {
|
||||
fun construct(inData: int): *ClassWithConstructor {
|
||||
data = inData;
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user