You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classC {
Number value
voidmeth(that) {
def val =!(that instanceof C) ? that.toString() : that.value
}
}
The last occurrence of "value" is showing as unknown (underlined). A similar situation exists for x !instanceof T ? x : x.y and if (x !instanceof T) { ... } else { x.y }
eric-milles
changed the title
Fix type inferencing and syntax highlighting for !instanceof flow typing
Improve flow typing support for !instanceof
Oct 24, 2019
Consider the following:
The last occurrence of "value" is showing as unknown (underlined). A similar situation exists for
x !instanceof T ? x : x.y
andif (x !instanceof T) { ... } else { x.y }
See also https://issues.apache.org/jira/browse/GROOVY-8412
The text was updated successfully, but these errors were encountered: