blob: 59e97379a218d2ec6fda3c308b0b27f032c9d1a4 [file] [log] [blame]
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program to test arithmetic operations.
class I<T> {}
class A implements I<int> {}
class B implements I<String> {}
class C extends A implements B {}
// ^
// [analyzer] COMPILE_TIME_ERROR.CONFLICTING_GENERIC_INTERFACES
// [cfe] 'C' can't implement both 'I<int>' and 'I<String>'
main() {
new C();
}