Change to star projection no longer applied for functional types #KT-13715 Fixed
Also EA-87648 Fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Change type arguments to <*, *>" "false"
|
||||
// ACTION: Convert to expression body
|
||||
|
||||
class Constructor<out T>(val x: T)
|
||||
|
||||
fun y() : Constructor<*> = Constructor(42)
|
||||
fun x(): (String) -> String {
|
||||
return y() as<caret> (String) -> String
|
||||
}
|
||||
Reference in New Issue
Block a user