forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '95ad66642eab0c1dbd97d8743276391e1cd56af1' into 'dev'
- Loading branch information
Showing
52 changed files
with
452 additions
and
1,145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) 2020, 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. | ||
|
||
class E { | ||
final int x; | ||
final int y; | ||
E() : this.named(), | ||
this.x = 1; | ||
this.y = 2; | ||
|
||
E.named() : this.x = 5, | ||
this.y = 6; | ||
} | ||
|
||
main() {} |
47 changes: 47 additions & 0 deletions
47
pkg/front_end/testcases/general/issue43363.dart.outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
library; | ||
// | ||
// Problems in library: | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:10:9: Error: Expected a class member, but got 'this'. | ||
// this.y = 2; | ||
// ^^^^ | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:10:13: Error: Expected a class member, but got '.'. | ||
// this.y = 2; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:10:14: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name. | ||
// Try adding the name of the type of the variable or the keyword 'var'. | ||
// this.y = 2; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:10:14: Error: 'y' is already declared in this scope. | ||
// this.y = 2; | ||
// ^ | ||
// pkg/front_end/testcases/general/issue43363.dart:7:13: Context: Previous declaration of 'y'. | ||
// final int y; | ||
// ^ | ||
// | ||
import self as self; | ||
import "dart:core" as core; | ||
|
||
class E extends core::Object { | ||
final field core::int* x; | ||
final field core::int* y; | ||
constructor •() → self::E* | ||
; | ||
constructor named() → self::E* | ||
; | ||
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode | ||
abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf | ||
abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf | ||
abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue | ||
abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse | ||
abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== | ||
abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode | ||
abstract member-signature method toString() → core::String*; -> core::Object::toString | ||
abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod | ||
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType | ||
} | ||
static method main() → dynamic | ||
; |
60 changes: 60 additions & 0 deletions
60
pkg/front_end/testcases/general/issue43363.dart.strong.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
library; | ||
// | ||
// Problems in library: | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:10:9: Error: Expected a class member, but got 'this'. | ||
// this.y = 2; | ||
// ^^^^ | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:10:13: Error: Expected a class member, but got '.'. | ||
// this.y = 2; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:10:14: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name. | ||
// Try adding the name of the type of the variable or the keyword 'var'. | ||
// this.y = 2; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:10:14: Error: 'y' is already declared in this scope. | ||
// this.y = 2; | ||
// ^ | ||
// pkg/front_end/testcases/general/issue43363.dart:7:13: Context: Previous declaration of 'y'. | ||
// final int y; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:9:16: Error: A redirecting constructor can't have other initializers. | ||
// this.x = 1; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:13:20: Error: Can't use 'y' because it is declared more than once. | ||
// this.y = 6; | ||
// ^ | ||
// | ||
import self as self; | ||
import "dart:core" as core; | ||
|
||
class E extends core::Object { | ||
final field core::int* x; | ||
final field core::int* y = null; | ||
constructor •() → self::E* | ||
: final dynamic #t1 = invalid-expression "pkg/front_end/testcases/general/issue43363.dart:9:16: Error: A redirecting constructor can't have other initializers. | ||
this.x = 1; | ||
^", this self::E::named() | ||
; | ||
constructor named() → self::E* | ||
: self::E::x = 5, final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/issue43363.dart:13:20: Error: Can't use 'y' because it is declared more than once. | ||
this.y = 6; | ||
^" | ||
; | ||
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode | ||
abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf | ||
abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf | ||
abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue | ||
abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse | ||
abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== | ||
abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode | ||
abstract member-signature method toString() → core::String*; -> core::Object::toString | ||
abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod | ||
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType | ||
} | ||
static method main() → dynamic {} |
60 changes: 60 additions & 0 deletions
60
pkg/front_end/testcases/general/issue43363.dart.strong.transformed.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
library; | ||
// | ||
// Problems in library: | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:10:9: Error: Expected a class member, but got 'this'. | ||
// this.y = 2; | ||
// ^^^^ | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:10:13: Error: Expected a class member, but got '.'. | ||
// this.y = 2; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:10:14: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name. | ||
// Try adding the name of the type of the variable or the keyword 'var'. | ||
// this.y = 2; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:10:14: Error: 'y' is already declared in this scope. | ||
// this.y = 2; | ||
// ^ | ||
// pkg/front_end/testcases/general/issue43363.dart:7:13: Context: Previous declaration of 'y'. | ||
// final int y; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:9:16: Error: A redirecting constructor can't have other initializers. | ||
// this.x = 1; | ||
// ^ | ||
// | ||
// pkg/front_end/testcases/general/issue43363.dart:13:20: Error: Can't use 'y' because it is declared more than once. | ||
// this.y = 6; | ||
// ^ | ||
// | ||
import self as self; | ||
import "dart:core" as core; | ||
|
||
class E extends core::Object { | ||
final field core::int* x; | ||
final field core::int* y = null; | ||
constructor •() → self::E* | ||
: final dynamic #t1 = invalid-expression "pkg/front_end/testcases/general/issue43363.dart:9:16: Error: A redirecting constructor can't have other initializers. | ||
this.x = 1; | ||
^", this self::E::named() | ||
; | ||
constructor named() → self::E* | ||
: self::E::x = 5, final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/issue43363.dart:13:20: Error: Can't use 'y' because it is declared more than once. | ||
this.y = 6; | ||
^" | ||
; | ||
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode | ||
abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf | ||
abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf | ||
abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue | ||
abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse | ||
abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== | ||
abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode | ||
abstract member-signature method toString() → core::String*; -> core::Object::toString | ||
abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod | ||
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType | ||
} | ||
static method main() → dynamic {} |
Oops, something went wrong.