Forbid prefixes and suffixes for numeric literals
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -USELESS_CAST
|
||||
|
||||
infix fun Any?.foo(a: Any) {}
|
||||
infix fun Any?.zoo(a: Any) {}
|
||||
infix fun Any?.Loo(a: Any) {}
|
||||
infix fun Any?.doo(a: Any) {}
|
||||
infix fun Any?.ddoo(a: Any) {}
|
||||
operator fun Any?.contains(a: Any): Boolean = true
|
||||
|
||||
fun test(a: Any) {
|
||||
1f<!UNSUPPORTED, UNRESOLVED_REFERENCE!>oo<!> a
|
||||
1f<!UNSUPPORTED!>foo<!> a
|
||||
1<!UNSUPPORTED!>doo<!> a
|
||||
1<!UNSUPPORTED!>ddoo<!> a
|
||||
1<!UNSUPPORTED, INFIX_MODIFIER_REQUIRED!>contains<!> a
|
||||
|
||||
1L<!UNSUPPORTED!>foo<!> a
|
||||
1L<!UNSUPPORTED, UNRESOLVED_REFERENCE!>oo<!> a
|
||||
1L<!UNSUPPORTED!>Loo<!> a
|
||||
|
||||
0b1<!UNSUPPORTED!>foo<!> a
|
||||
0b1L<!UNSUPPORTED!>foo<!> a
|
||||
0b1L<!UNSUPPORTED, UNRESOLVED_REFERENCE!>oo<!> a
|
||||
0b1L<!UNSUPPORTED!>Loo<!> a
|
||||
|
||||
0xf<!UNSUPPORTED, UNRESOLVED_REFERENCE!>oo<!> a
|
||||
0xff<!UNSUPPORTED, UNRESOLVED_REFERENCE!>oo<!> a
|
||||
0xfL<!UNSUPPORTED!>Loo<!> a
|
||||
|
||||
1.0f<!UNSUPPORTED, UNRESOLVED_REFERENCE!>oo<!> a
|
||||
1.0f<!UNSUPPORTED!>foo<!> a
|
||||
1.0<!UNSUPPORTED!>doo<!> a
|
||||
1.0<!UNSUPPORTED!>ddoo<!> a
|
||||
|
||||
.0f<!UNSUPPORTED, UNRESOLVED_REFERENCE!>oo<!> a
|
||||
.0f<!UNSUPPORTED!>foo<!> a
|
||||
.0<!UNSUPPORTED!>doo<!> a
|
||||
.0<!UNSUPPORTED!>ddoo<!> a
|
||||
|
||||
1<!UNSUPPORTED!>in<!> a
|
||||
1.0<!UNSUPPORTED!>in<!> a
|
||||
1.0f<!UNSUPPORTED!>in<!> a
|
||||
1.0<!UNSUPPORTED, UNRESOLVED_REFERENCE!>din<!> a
|
||||
.0<!UNSUPPORTED!>in<!> a
|
||||
.0f<!UNSUPPORTED!>in<!> a
|
||||
.0<!UNSUPPORTED, UNRESOLVED_REFERENCE!>din<!> a
|
||||
|
||||
1<!UNSUPPORTED!>is<!> Any
|
||||
1<!UNSUPPORTED!>as<!> Any
|
||||
1<!UNSUPPORTED!>as?<!> Any
|
||||
|
||||
1<!UNSUPPORTED!>!is<!> Any
|
||||
1<!UNSUPPORTED!>!in<!> a
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package
|
||||
|
||||
public fun test(/*0*/ a: kotlin.Any): kotlin.Unit
|
||||
public infix fun kotlin.Any?.Loo(/*0*/ a: kotlin.Any): kotlin.Unit
|
||||
public operator fun kotlin.Any?.contains(/*0*/ a: kotlin.Any): kotlin.Boolean
|
||||
public infix fun kotlin.Any?.ddoo(/*0*/ a: kotlin.Any): kotlin.Unit
|
||||
public infix fun kotlin.Any?.doo(/*0*/ a: kotlin.Any): kotlin.Unit
|
||||
public infix fun kotlin.Any?.foo(/*0*/ a: kotlin.Any): kotlin.Unit
|
||||
public infix fun kotlin.Any?.zoo(/*0*/ a: kotlin.Any): kotlin.Unit
|
||||
Reference in New Issue
Block a user