forked from dart-lang/co19
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dart-lang#2825. Update existing tests for Parts
- Loading branch information
Showing
52 changed files
with
369 additions
and
671 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
25 changes: 25 additions & 0 deletions
25
Language/Libraries_and_Scripts/Parts/compilation_t01_part.dart
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,25 @@ | ||
// 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 Compiling a part directive of the form `part s;` causes the Dart | ||
/// system to attempt to compile the contents of the URI that is the value of | ||
/// `s`. The top-level declarations at that URI are then compiled by the Dart | ||
/// compiler in the scope of the current library. | ||
/// | ||
/// @description Checks that it is a compile-time error when names in the | ||
/// included file conflict with top-level definitions in this library. | ||
/// @author rodionov | ||
@Annot() | ||
part of "compilation_t01.dart"; | ||
|
||
class Annot { | ||
const Annot(); | ||
} | ||
|
||
final foo = "foo"; | ||
// ^^^ | ||
// [analyzer] unspecified | ||
// [cfe] unspecified | ||
var bar = 1; |
This file was deleted.
Oops, something went wrong.
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
19 changes: 19 additions & 0 deletions
19
Language/Libraries_and_Scripts/Parts/compilation_t04_part1.dart
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,19 @@ | ||
// 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 Compiling a part directive of the form `part s;` causes the Dart | ||
/// system to attempt to compile the contents of the URI that is the value of | ||
/// `s`. The top-level declarations at that URI are then compiled by the Dart | ||
/// compiler in the scope of the current library. | ||
/// | ||
/// @description Checks that more than one part can be included in a library | ||
/// without errors as long as there are no name conflicts. | ||
part of 'compilation_t04.dart'; | ||
|
||
class A { } | ||
|
||
get value { return _value; } | ||
set value(value) { _value = value; } | ||
var _value; |
21 changes: 21 additions & 0 deletions
21
Language/Libraries_and_Scripts/Parts/compilation_t04_part2.dart
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,21 @@ | ||
// Copyright (c) 2024, 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 Compiling a part directive of the form `part s;` causes the Dart | ||
/// system to attempt to compile the contents of the URI that is the value of | ||
/// `s`. The top-level declarations at that URI are then compiled by the Dart | ||
/// compiler in the scope of the current library. | ||
/// | ||
/// @description Checks that more than one part can be included in a library | ||
/// without errors as long as there are no name conflicts. | ||
@Annot() | ||
part of 'compilation_t04.dart'; | ||
|
||
class Annot { | ||
const Annot(); | ||
} | ||
|
||
final foo = "foo"; | ||
var bar = 1; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.