Change to star projection no longer applied for functional types #KT-13715 Fixed

Also EA-87648 Fixed
This commit is contained in:
Mikhail Glukhikh
2016-09-09 10:22:24 +03:00
parent 23132ad519
commit 998399bcd8
3 changed files with 16 additions and 0 deletions
@@ -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
}