"Remove explicit type specification" intention: Add type argument to initializer if need #KT-13343 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
54922362e3
commit
0099b7b3b1
@@ -0,0 +1,2 @@
|
||||
// WITH_RUNTIME
|
||||
val x: <caret>Set<Int> = setOf()
|
||||
@@ -0,0 +1,2 @@
|
||||
// WITH_RUNTIME
|
||||
val x = setOf<Int>()
|
||||
@@ -0,0 +1,2 @@
|
||||
class Foo<T, U>
|
||||
val foo: <caret>Foo<Int, String> = Foo()
|
||||
@@ -0,0 +1,2 @@
|
||||
class Foo<T, U>
|
||||
val foo = Foo<Int, String>()
|
||||
Reference in New Issue
Block a user