Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart |
| index 9032bf5771014cebc31741fd6f7bb9c10a93c6a6..a5d8ed2fb5ec2525e94e7cc5dec832d61afc58e7 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart |
| @@ -1544,9 +1544,9 @@ class CodeEmitterTask extends CompilerTask { |
| bool canGenerateCheckedSetter(Element member) { |
| DartType type = member.computeType(compiler); |
| - if (type.element.isTypeVariable() |
| - || type.element == compiler.dynamicClass |
| - || type.element == compiler.objectClass) { |
| + if (type.containsTypeVariables || |
|
Johnni Winther
2013/07/05 06:38:26
This is a temporary fix for issue 11273.
karlklose
2013/07/08 08:37:30
Change that to bailout for function types and go t
karlklose
2013/07/08 08:37:30
Change that to bailout for function types and go t
|
| + type.element == compiler.dynamicClass || |
| + type.element == compiler.objectClass) { |
| // TODO(ngeoffray): Support type checks on type parameters. |
| return false; |
| } |