Minor. Report reified-related diagnostics on arguments if possible

This commit is contained in:
Denis Zharkov
2016-01-19 10:16:22 +03:00
parent 5baa0ed4bb
commit ae6c62ddff
8 changed files with 17 additions and 13 deletions
@@ -38,8 +38,8 @@ fun test4(
) {}
fun test5() {
<!UNSUPPORTED!><!REIFIED_TYPE_FORBIDDEN_SUBSTITUTION!>arrayOf<!><Nothing>()<!>
<!UNSUPPORTED!><!REIFIED_TYPE_FORBIDDEN_SUBSTITUTION!>Array<!><Nothing>(10) { throw Exception() }<!>
<!UNSUPPORTED!>arrayOf<<!REIFIED_TYPE_FORBIDDEN_SUBSTITUTION!>Nothing<!>>()<!>
<!UNSUPPORTED!>Array<<!REIFIED_TYPE_FORBIDDEN_SUBSTITUTION!>Nothing<!>>(10) { throw Exception() }<!>
}
fun <T> foo(): Array<T> = (object {} as Any) as Array<T>