blob: 704bc12eb9b317708b7cf598c54b970aece015db [file] [log] [blame] [edit]
// Copyright (c) 2017, 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.
library test;
T f<T>(T x) => x;
class C {
T f<T>(T x) => x;
static T g<T>(T x) => x;
}
class D extends C {
void test() {
int Function(int) func;
func = super.f;
}
}
void test() {
T h<T>(T x) => x;
int Function(int) func;
func = f;
func = new C().f;
func = C.g;
func = h;
}
main() {}