Diagnostics for illegal platform names

This commit is contained in:
Andrey Breslav
2014-06-10 18:51:23 +04:00
parent 14a6cdf458
commit f59ff5d8fe
5 changed files with 46 additions and 9 deletions
@@ -0,0 +1,14 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
import kotlin.platform.*
[<!ILLEGAL_PLATFORM_NAME!>platformName("")<!>]
fun foo(a: Any) {}
[<!ILLEGAL_PLATFORM_NAME!>platformName(".")<!>]
fun foo() {}
[<!ILLEGAL_PLATFORM_NAME!>platformName("/")<!>]
fun fooSlash() {}
[<!ILLEGAL_PLATFORM_NAME!>platformName("<")<!>]
fun fooLT() {}