| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 5 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 6 | 6 |
| 7 import 'error_test.dart'; | 7 import 'error_test.dart'; |
| 8 | 8 |
| 9 main() { | 9 main() { |
| 10 defineReflectiveSuite(() { | 10 defineReflectiveSuite(() { |
| 11 defineReflectiveTests(AnalysisErrorIntegrationTest_Driver); | 11 defineReflectiveTests(AnalysisErrorIntegrationTest_Driver); |
| 12 }); | 12 }); |
| 13 } | 13 } |
| 14 | 14 |
| 15 @reflectiveTest | 15 @reflectiveTest |
| 16 class AnalysisErrorIntegrationTest_Driver | 16 class AnalysisErrorIntegrationTest_Driver |
| 17 extends AbstractAnalysisErrorIntegrationTest { | 17 extends AbstractAnalysisErrorIntegrationTest { |
| 18 @override | 18 @override |
| 19 bool get enableNewAnalysisDriver => true; | 19 bool get enableNewAnalysisDriver => true; |
| 20 | 20 |
| 21 @failingTest | 21 @failingTest |
| 22 test_super_mixins_enabled() async { | 22 test_super_mixins_enabled() async { |
| 23 // We see errors here with the new driver (#28870). |
| 23 // Expected: empty | 24 // Expected: empty |
| 24 // Actual: [ | 25 // Actual: [ |
| 25 // AnalysisError:{"severity":"ERROR","type":"COMPILE_TIME_ERROR","locatio
n":{"file":"/var/folders/00/0w95r000h01000cxqpysvccm003j4q/T/analysisServerfbuOQ
b/test.dart","offset":31,"length":1,"startLine":1,"startColumn":32},"message":"T
he class 'C' can't be used as a mixin because it extends a class other than Obje
ct.","correction":"","code":"mixin_inherits_from_not_object","hasFix":false}, | 26 // AnalysisError:{"severity":"ERROR","type":"COMPILE_TIME_ERROR","locatio
n":{"file":"/var/folders/00/0w95r000h01000cxqpysvccm003j4q/T/analysisServerfbuOQ
b/test.dart","offset":31,"length":1,"startLine":1,"startColumn":32},"message":"T
he class 'C' can't be used as a mixin because it extends a class other than Obje
ct.","correction":"","code":"mixin_inherits_from_not_object","hasFix":false}, |
| 26 // AnalysisError:{"severity":"ERROR","type":"COMPILE_TIME_ERROR","locatio
n":{"file":"/var/folders/00/0w95r000h01000cxqpysvccm003j4q/T/analysisServerfbuOQ
b/test.dart","offset":31,"length":1,"startLine":1,"startColumn":32},"message":"T
he class 'C' can't be used as a mixin because it references 'super'.","correctio
n":"","code":"mixin_references_super","hasFix":false} | 27 // AnalysisError:{"severity":"ERROR","type":"COMPILE_TIME_ERROR","locatio
n":{"file":"/var/folders/00/0w95r000h01000cxqpysvccm003j4q/T/analysisServerfbuOQ
b/test.dart","offset":31,"length":1,"startLine":1,"startColumn":32},"message":"T
he class 'C' can't be used as a mixin because it references 'super'.","correctio
n":"","code":"mixin_references_super","hasFix":false} |
| 27 // ] | 28 // ] |
| 28 return super.test_super_mixins_enabled(); | 29 return super.test_super_mixins_enabled(); |
| 29 } | 30 } |
| 30 } | 31 } |
| OLD | NEW |