Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: tests/compiler/dart2js/assert_message_throw_test.dart

Issue 2528043003: Handle assert with message in type inference (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/inferrer/inferrer_visitor.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'package:async_helper/async_helper.dart';
6 import 'package:compiler/src/commandline_options.dart';
7 import 'memory_compiler.dart';
8
9 const String SOURCE = '''
10 main() {
11 assert(true, throw "unreachable");
12 var list = [];
sra1 2016/11/26 22:41:20 I don't understand what this is testing. Perhaps
Johnni Winther 2016/11/28 10:08:29 The crash reported in #27882. We had inconsistent
13 }
14 ''';
15
16 main() {
17 asyncTest(() async {
18 await runCompiler(
19 entryPoint: Uri.parse('memory:main.dart'),
20 memorySourceFiles: {'main.dart': SOURCE},
21 options: [Flags.enableCheckedMode, Flags.enableAssertMessage]);
22 });
23 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/inferrer/inferrer_visitor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698