| Index: frog/gen.dart
|
| diff --git a/frog/gen.dart b/frog/gen.dart
|
| index 807e2f13cda25cf2894022dd097c5aa9f664c2e0..a88a0cc5a8d4160fdf461f8377f7921ed2e63554 100644
|
| --- a/frog/gen.dart
|
| +++ b/frog/gen.dart
|
| @@ -545,6 +545,8 @@ class MethodGenerator implements TreeVisitor {
|
|
|
| bool get isClosure() => (enclosingMethod != null);
|
|
|
| + bool get isStatic() => method.isStatic;
|
| +
|
| Value getTemp(Value value) {
|
| return value.needsTemp ? forceTemp(value) : value;
|
| }
|
| @@ -1420,7 +1422,7 @@ class MethodGenerator implements TreeVisitor {
|
| }
|
|
|
| _checkNonStatic(Node node) {
|
| - if (method.isStatic) {
|
| + if (isStatic) {
|
| world.warning('not allowed in static method', node.span);
|
| }
|
| }
|
|
|