blob: 462a7d4e616d370bb600f242ba12945b9753902a [file] [log] [blame]
/*
* Copyright (c) 2011, 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 Static type annotation grammar:
* type:
* typeName typeArguments?
* ;
* typeName:
* qualified
* ;
* typeArguments:
* '<' typeList '>'
* ;
* typeList:
* type (',' type)*
* ;
* @description Checks that using fully qualified type name allows to import it from some library.
* @author iefremov
* @reviewer rodionov
*/
import "somelib.dart" as somelibprefix;
main() {
somelibprefix.ClassFromSomeLib v1;
somelibprefix.ClassFromSomeLib<int, String, double> v2;
somelibprefix.ClassFromSomeLib
<
somelibprefix.ClassFromSomeLib<int, bool, double>,
somelibprefix.ClassFromSomeLib<bool, int, double>,
somelibprefix.ClassFromSomeLib
>
v3;
}