Strange error message when declaring type in which variable and method have same name
hcnelson99 opened this issue · 0 comments
hcnelson99 commented
Test case:
type T
val x: Int
def x(): Int
Observed behavior:
var_23 is not a subtype of var_23; missing declaration x at location file Unknown on line -1 column -1
Expected behavior: Not sure. Do methods and variables have separate namespaces?