'Nothing' as function return type and property type can't be abbreviated.

This commit is contained in:
Dmitry Petrov
2016-06-10 13:44:55 +03:00
parent 0ff677596f
commit bee1762b0e
6 changed files with 27 additions and 1 deletions
@@ -0,0 +1,5 @@
typealias N = Nothing
fun <!ABBREVIATED_NOTHING_RETURN_TYPE!>testFun<!>(): N = null!!
val <!ABBREVIATED_NOTHING_PROPERTY_TYPE!>testVal<!>: N = null!!
val <!ABBREVIATED_NOTHING_PROPERTY_TYPE!>testValWithGetter<!>: N get() = null!!
@@ -0,0 +1,6 @@
package
public typealias N = kotlin.Nothing
public val testVal: N [= kotlin.Nothing]
public val testValWithGetter: N [= kotlin.Nothing]
public fun testFun(): N [= kotlin.Nothing]