Highlighting "as Foo" for useless casts in gray.
#KT-6070 fixed
This commit is contained in:
@@ -5,12 +5,12 @@ fun test() : Unit {
|
||||
x : Int?
|
||||
y : Int
|
||||
x as Int : Int
|
||||
y <warning>as</warning> Int : Int
|
||||
x <warning>as</warning> Int? : Int?
|
||||
y <warning>as</warning> Int? : Int?
|
||||
y <warning textAttributesKey="NOT_USED_ELEMENT_ATTRIBUTES">as Int</warning> : Int
|
||||
x <warning textAttributesKey="NOT_USED_ELEMENT_ATTRIBUTES">as Int?</warning> : Int?
|
||||
y <warning textAttributesKey="NOT_USED_ELEMENT_ATTRIBUTES">as Int?</warning> : Int?
|
||||
x as? Int : Int?
|
||||
y <warning>as?</warning> Int : Int?
|
||||
x <warning>as?</warning> Int? : Int?
|
||||
y <warning>as?</warning> Int? : Int?
|
||||
y <warning textAttributesKey="NOT_USED_ELEMENT_ATTRIBUTES">as? Int</warning> : Int?
|
||||
x <warning textAttributesKey="NOT_USED_ELEMENT_ATTRIBUTES">as? Int?</warning> : Int?
|
||||
y <warning textAttributesKey="NOT_USED_ELEMENT_ATTRIBUTES">as? Int?</warning> : Int?
|
||||
Unit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user