blob: 034f5b5a5078514b3f720676d5c74faa541cebea [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.
*/
/**
* @assertion The mixinMember production allows the same instance or static
* members that a class would allow, but no constructors (for now).
*
* @description Checks that mixin declaration allows same instance or static
* members that a class would allow.
* @author ngl@unipro.ru
*/
class I {}
class J {}
class B {}
class C {}
mixin M on B, C implements I, J {
static int s1 = 1;
static int get gs => s1;
static set ss(int v) {
s1 = v;
}
static num sf() => 11;
int i1;
int get gi;
set si(int v);
num mi();
}
class MA with M {
int i1 = 2;
int get gi => i1;
set si(int v) {
i1 = v;
}
num mi() => 22;
}
main() {
new MA();
}