Check for accessibility of unsigned types when using unsigned literals

This commit is contained in:
Mikhail Zarechenskiy
2018-08-27 13:21:12 +03:00
parent afd53c9870
commit 3f79a752a5
5 changed files with 33 additions and 6 deletions
@@ -0,0 +1,6 @@
// !API_VERSION: 1.2
val a = <!UNSIGNED_LITERAL_WITHOUT_DECLARATIONS_ON_CLASSPATH!>0u<!>
val b = <!UNSIGNED_LITERAL_WITHOUT_DECLARATIONS_ON_CLASSPATH!>1uL<!>
fun foo(<!UNUSED_PARAMETER!>u<!>: <!UNRESOLVED_REFERENCE!>UInt<!>) {}
@@ -0,0 +1,5 @@
package
public val a: [ERROR : Type cannot be resolved. Please make sure you have the required dependencies for unsigned types in the classpath]
public val b: [ERROR : Type cannot be resolved. Please make sure you have the required dependencies for unsigned types in the classpath]
public fun foo(/*0*/ u: [ERROR : UInt]): kotlin.Unit