"field": deprecated warnings introduced, compiler tests migrated to the new syntax

This commit is contained in:
Mikhail Glukhikh
2015-09-17 18:58:30 +03:00
committed by Mikhail Glukhikh
parent 028e0ec59a
commit a1e3471d92
64 changed files with 154 additions and 149 deletions
@@ -100,10 +100,10 @@ class Logo(override var pos: Vector) : Shape() {
val gradientGenerator: RadialGradientGenerator? = null
get() {
if ($gradientGenerator == null) {
$gradientGenerator = RadialGradientGenerator(context)
if (field == null) {
field = RadialGradientGenerator(context)
}
return $gradientGenerator
return field
}
class Creature(override var pos: Vector, val state: CanvasState) : Shape() {