blob: 79eb29c2e2ee1fb2eb447b2b437d7ef808d10d98 [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 annotations are used in variable declarations
* (including formal parameters), in the return types of functions and in the
* bounds of type variables.
* 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
*/
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;
}