Files
sdk/pkg/front_end/testcases/named_function_scope.dart.direct.expect
T
Peter von der Ahé 097e8d86b8 Use context severity when calling onProblem
Change-Id: Id1aef8c9185e4d1e660cc342d54a12923a890a43
Reviewed-on: https://dart-review.googlesource.com/77060
Commit-Queue: Peter von der Ahé <ahe@google.com>
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Auto-Submit: Peter von der Ahé <ahe@google.com>
2018-10-02 17:02:10 +00:00

189 lines
8.1 KiB
Plaintext

// Formatted problems:
//
// pkg/front_end/testcases/named_function_scope.dart:28:48: Error: A function expression can't have a name.
// var x = /*@error=NamedFunctionExpression*/ T() {};
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:33:49: Error: Can't declare 'V' because it was already used in this scope.
// var /*@error=DuplicatedNamePreviouslyUsed*/ V;
// ^
// pkg/front_end/testcases/named_function_scope.dart:31:52: Context: Previous use of 'V'.
// /*@context=DuplicatedNamePreviouslyUsedCause*/ V v;
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:38:49: Error: Can't declare 'V' because it was already used in this scope.
// var /*@error=DuplicatedNamePreviouslyUsed*/ V = null;
// ^
// pkg/front_end/testcases/named_function_scope.dart:36:52: Context: Previous use of 'V'.
// /*@context=DuplicatedNamePreviouslyUsedCause*/ V v;
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:48:9: Error: A function expression can't have a name.
// T() {};
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:48:9: Error: Can't declare 'T' because it was already used in this scope.
// T() {};
// ^
// pkg/front_end/testcases/named_function_scope.dart:45:9: Context: Previous use of 'T'.
// T
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:54:47: Error: Can't declare 'V' because it was already used in this scope.
// V /*@error=DuplicatedNamePreviouslyUsed*/ V;
// ^
// pkg/front_end/testcases/named_function_scope.dart:54:5: Context: Previous use of 'V'.
// V /*@error=DuplicatedNamePreviouslyUsed*/ V;
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:62:9: Error: A function expression can't have a name.
// T< /*@context=DuplicatedDeclarationCause*/ T>() {};
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:62:9: Error: 'T' is already declared in this scope.
// T< /*@context=DuplicatedDeclarationCause*/ T>() {};
// ^
// pkg/front_end/testcases/named_function_scope.dart:62:52: Context: Previous declaration of 'T'.
// T< /*@context=DuplicatedDeclarationCause*/ T>() {};
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:67:47: Error: Can't declare 'T' because it was already used in this scope.
// T /*@error=DuplicatedNamePreviouslyUsed*/ T() {}
// ^
// pkg/front_end/testcases/named_function_scope.dart:66:5: Context: Previous use of 'T'.
// T t;
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:71:47: Error: Can't declare 'T' because it was already used in this scope.
// T /*@error=DuplicatedNamePreviouslyUsed*/ T() {}
// ^
// pkg/front_end/testcases/named_function_scope.dart:71:5: Context: Previous use of 'T'.
// T /*@error=DuplicatedNamePreviouslyUsed*/ T() {}
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:76:47: Error: Can't declare 'T' because it was already used in this scope.
// T /*@error=DuplicatedNamePreviouslyUsed*/ T(T t) {}
// ^
// pkg/front_end/testcases/named_function_scope.dart:75:5: Context: Previous use of 'T'.
// T t;
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:80:47: Error: Can't declare 'T' because it was already used in this scope.
// T /*@error=DuplicatedNamePreviouslyUsed*/ T(T t) {}
// ^
// pkg/front_end/testcases/named_function_scope.dart:80:5: Context: Previous use of 'T'.
// T /*@error=DuplicatedNamePreviouslyUsed*/ T(T t) {}
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:83:32: Warning: 'T' isn't a type.
// void T(/*@error=NotAType*/ T t) {}
// ^
// Unhandled errors:
//
// pkg/front_end/testcases/named_function_scope.dart:28:48: Error: A function expression can't have a name.
// var x = /*@error=NamedFunctionExpression*/ T() {};
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:48:9: Error: A function expression can't have a name.
// T() {};
// ^
//
// pkg/front_end/testcases/named_function_scope.dart:62:9: Error: A function expression can't have a name.
// T< /*@context=DuplicatedDeclarationCause*/ T>() {};
// ^
library;
import self as self;
import "dart:core" as core;
class T extends core::Object {
synthetic constructor •() → self::T
: super core::Object::•()
;
}
class V extends core::Object {
synthetic constructor •() → self::V
: super core::Object::•()
;
}
static method test() → dynamic {
self::T t;
self::V v;
{
function T() → dynamic {}
}
{
dynamic v;
}
{
self::T t;
dynamic x = let final () → dynamic T = () → dynamic {} in T;
}
{
self::V v;
dynamic V = invalid-expression "pkg/front_end/testcases/named_function_scope.dart:33:49: Error: Can't declare 'V' because it was already used in this scope.
var /*@error=DuplicatedNamePreviouslyUsed*/ V;
^";
}
{
self::V v;
dynamic V = let final dynamic #t1 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/named_function_scope.dart:38:49: Error: Can't declare 'V' because it was already used in this scope.
var /*@error=DuplicatedNamePreviouslyUsed*/ V = null;
^" in let final dynamic #t2 = null in null;
}
{
dynamic x = let final dynamic #t3 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/named_function_scope.dart:48:9: Error: Can't declare 'T' because it was already used in this scope.
T() {};
^" in let final () → self::T T = () → self::T {} in T;
}
{
self::V V = invalid-expression "pkg/front_end/testcases/named_function_scope.dart:54:47: Error: Can't declare 'V' because it was already used in this scope.
V /*@error=DuplicatedNamePreviouslyUsed*/ V;
^";
}
{
dynamic x = let final dynamic #t4 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/named_function_scope.dart:62:9: Error: 'T' is already declared in this scope.
T< /*@context=DuplicatedDeclarationCause*/ T>() {};
^" in let final <T extends core::Object = dynamic>() → dynamic T = <T extends core::Object = dynamic>() → dynamic {} in T;
}
{
self::T t;
{
invalid-expression "pkg/front_end/testcases/named_function_scope.dart:67:47: Error: Can't declare 'T' because it was already used in this scope.
T /*@error=DuplicatedNamePreviouslyUsed*/ T() {}
^";
function T() → self::T {}
}
}
{
{
invalid-expression "pkg/front_end/testcases/named_function_scope.dart:71:47: Error: Can't declare 'T' because it was already used in this scope.
T /*@error=DuplicatedNamePreviouslyUsed*/ T() {}
^";
function T() → self::T {}
}
}
{
self::T t;
{
invalid-expression "pkg/front_end/testcases/named_function_scope.dart:76:47: Error: Can't declare 'T' because it was already used in this scope.
T /*@error=DuplicatedNamePreviouslyUsed*/ T(T t) {}
^";
function T(self::T t) → self::T {}
}
}
{
{
invalid-expression "pkg/front_end/testcases/named_function_scope.dart:80:47: Error: Can't declare 'T' because it was already used in this scope.
T /*@error=DuplicatedNamePreviouslyUsed*/ T(T t) {}
^";
function T(self::T t) → self::T {}
}
}
{
function T(invalid-type t) → void {}
}
}
static method main() → void {}