[FIR] Support constructor call of unsigned in checker
This commit is contained in:
committed by
TeamCityServer
parent
7f2eaab02b
commit
dce8bd4e62
+3
-1
@@ -1,5 +1,4 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
// FILE: uint.kt
|
||||
|
||||
@@ -9,6 +8,9 @@ inline class UInt(val value: Int)
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
//this import in required in FIR because default imports don't search in local sources atm
|
||||
import kotlin.UInt
|
||||
|
||||
const val u = UInt(14)
|
||||
|
||||
fun foo() {
|
||||
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun ubyte(vararg a: UByte) {}
|
||||
fun ushort(vararg a: UShort) {}
|
||||
fun uint(vararg a: UInt) {}
|
||||
fun ulong(vararg a: ULong) {}
|
||||
|
||||
class ValueParam(vararg val a: ULong)
|
||||
|
||||
annotation class Ann(vararg val a: <!INVALID_TYPE_OF_ANNOTATION_MEMBER!>UInt<!>)
|
||||
|
||||
fun array(<!FORBIDDEN_VARARG_PARAMETER_TYPE!>vararg<!> a: UIntArray) {}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun ubyte(vararg a: UByte) {}
|
||||
|
||||
Reference in New Issue
Block a user