blob: 955eeb8d75e065e479c93199b57f7863d7f886c4 [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.
*/
/**
* @description Regression test for the issue 33805 (Analyzer throws error when
* try to assign a function result to row variable).
* @author iarkh@unipro.ru
*/
class A<X> {}
X testme<X extends A<X>>() {}
main() {
A a = testme(); //# 01: compile-time error
A<A> a1 = testme(); //# 02: compile-time error
A<A<A>> a2 = testme(); //# 03: compile-time error
}