Files
kotlin-fork/kotlin-native/backend.native/tests/compilerChecks/t60.kt
T
Svyatoslav Scherbina d218b88106 Forbid subclasses of NativePointed to have backing fields
(this crashes the compiler otherwise)
2020-11-28 20:52:24 +01:00

11 lines
252 B
Kotlin

import kotlinx.cinterop.*
class Vertex constructor(rawPtr: NativePtr) : CStructVar(rawPtr) {
var x: Float = 0f
var y: Float = 0f
var r: Float = 0f
var g: Float = 0f
var b: Float = 0f
companion object : CStructVar.Type(40, 8)
}