blob: 456a54726f17800e8d77c2ddf715c3cf65db6b53 [file] [log] [blame]
// Copyright (c) 2014, 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 = 2.9
class A {
get getter1 => null; //# 01: ok
num get getter2 => null; //# 02: ok
num get getter3 => null; //# 03: ok
int get getter4 => null; //# 04: compile-time error
int get getter5 => null; //# 05: compile-time error
int get getter6 => null; //# 06: compile-time error
int get getter7 => null; //# 07: compile-time error
int get getter8 => null; //# 08: compile-time error
set setter1(_) => null; //# 21: ok
void set setter2(_) {} //# 22: ok
set setter3(_) => null; //# 23: ok
set setter4(_) => null; //# 24: ok
set setter5(num _) => null; //# 25: ok
set setter6(num _) => null; //# 26: compile-time error
set setter7(int _) => null; //# 27: ok
set setter8(int _) => null; //# 28: compile-time error
set setter9(int _) => null; //# 29: compile-time error
set setter10(int _) => null; //# 30: compile-time error
set setter11(int _) => null; //# 31: compile-time error
int field1; //# 41: ok
num field2; //# 42: compile-time error
int field3; //# 43: compile-time error
int field4; //# 44: compile-time error
int field5; //# 45: compile-time error
num field6; //# 46: ok
num field7; //# 47: compile-time error
num get field8 => null; //# 48: compile-time error
num field9; //# 49: compile-time error
num field10; //# 50: compile-time error
set field11(int _) {} //# 51: ok
void set field12(int _) {} //# 52: ok
num field13; //# 53: compile-time error
set field14(num _) {} //# 54: compile-time error
num field15; //# 55: ok
}
class B extends A {
num get getter6 => null; //# 06: continued
set setter9(num _) => null; //# 29: continued
num field5; //# 45: continued
}
abstract class I {
num get getter7 => null; //# 07: continued
String get getter8 => null; //# 08: continued
int get getter9 => null; //# 09: compile-time error
int get getter10 => null; //# 10: compile-time error
int get getter11 => null; //# 11: compile-time error
set setter10(num _) => null; //# 30: continued
set setter11(String _) => null; //# 31: continued
set setter12(int _) => null; //# 32: compile-time error
set setter13(int _) => null; //# 33: compile-time error
set setter13(num _) => null; //# 33a: compile-time error
set setter14(int _) => null; //# 34: compile-time error
}
abstract class J {
String get getter9 => null; //# 09: continued
num get getter10 => null; //# 10: continued
num get getter11 => null; //# 11: continued
set setter12(String _) => null; //# 32: continued
set setter13(num _) => null; //# 33: continued
set setter13(int _) => null; //# 33a: continued
set setter14(num _) => null; //# 34: continued
}
abstract class Class extends B implements I, J {
get getter1 => null; //# 01: continued
num get getter2 => null; //# 02: continued
int get getter3 => null; //# 03: continued
num get getter4 => null; //# 04: continued
double get getter5 => null; //# 05: continued
double get getter6 => null; //# 06: continued
double get getter7 => null; //# 07: continued
double get getter8 => null; //# 08: continued
double get getter9 => null; //# 09: continued
set setter1(_) => null; //# 21: continued
set setter2(_) => null; //# 22: continued
void set setter3(_) {} //# 23: continued
void set setter4(_) {} //# 24: continued
set setter5(num _) => null; //# 25: continued
set setter6(int _) => null; //# 26: continued
set setter7(num _) => null; //# 27: continued
set setter8(double _) => null; //# 28: continued
set setter9(double _) => null; //# 29: continued
set setter10(double _) => null; //# 30: continued
set setter11(double _) => null; //# 31: continued
set setter12(double _) => null; //# 32: continued
int field1; //# 41: continued
int field2; //# 42: continued
num field3; //# 43: continued
double field4; //# 44: continued
double field5; //# 45: continued
int get field6 => null; //# 46: continued
String get field7 => null; //# 47: continued
String field8; //# 48: continued
set field9(int _) {} //# 49: continued
void set field10(int _) {} //# 50: continued
num field11; //# 51: continued
num field12; //# 52: continued
set field13(String _) {} //# 53: continued
String field14; //# 54: continued
set field15(covariant int _) {} //# 55: continued
}
class SubClass extends Class {
double get getter10 => null; //# 10: continued
String get getter11 => null; //# 11: continued
set setter13(double _) => null; //# 33: continued
set setter13(double _) => null; //# 33a: continued
set setter14(String _) => null; //# 34: continued
}
main() {
new SubClass();
}