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
When executed, the runtime selects DefaultGroovyMethods#getAt(Object,String): Object for the subscript operation. However, the editor is inferring DefaultGroovyMethods#getAt(Map,Object): String and so "toUpperCase" is highlighted as an instance method of String. Since the return type is Object the method should be highlighted as unknown (underlined).
NOTE: There are separate issues filed to handle the oddities that result from having getAt(Object,String) and putAt(Object,String,Object) extension methods.
The text was updated successfully, but these errors were encountered:
- disable code hover/select for map key
- highlight property expression as MAP_KEY
- propose only fields for "map.@x"
- propose only methods for "map.&x" or "map::x"
- propose only methods for "map.x" (no Java-bean variants)
- change inferred type of getAt(Object,String) extension method
#1143
- disable code hover/select for map key
- highlight property expression as MAP_KEY
- propose only fields for "map.@x"
- propose only methods for "map.&x" or "map::x"
- propose only methods for "map.x" (no Java-bean variants)
- change inferred type of getAt(Object,String) extension method
#1143
Consider the following:
When executed, the runtime selects
DefaultGroovyMethods#getAt(Object,String): Object
for the subscript operation. However, the editor is inferringDefaultGroovyMethods#getAt(Map,Object): String
and so "toUpperCase" is highlighted as an instance method of String. Since the return type is Object the method should be highlighted as unknown (underlined).NOTE: There are separate issues filed to handle the oddities that result from having
getAt(Object,String)
andputAt(Object,String,Object)
extension methods.The text was updated successfully, but these errors were encountered: