/* * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ import kotlin.test.* class Box(t: T) { var value = t } fun box(): String { val box: Box = Box(17) if (box.value != 17) return "FAIL 1: ${box.value}" val nonConst = 17 val box2: Box = Box(nonConst) if (box2.value != 17) return "FAIL 1: ${box2.value}" return "OK" }