Files
sdk/pkg/front_end/testcases/expression/main.dart
T
Samir Jindel 03abbc73d2 CFE support for expression evaluation, refactored.
Change-Id: I7eac1020b7aa11ea0276f909d7b11ee6388b1aa7
Reviewed-on: https://dart-review.googlesource.com/53209
Commit-Queue: Samir Jindel <sjindel@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2018-05-08 11:20:35 +00:00

54 lines
803 B
Dart

// Copyright (c) 2018, 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.
library main;
import 'dart:io' show File, Process, exit;
int doitstat(int x) => x + 1;
int globalVar = 6;
class A<T> {
const A();
static int doit(int x) => x + 1;
static int staticVar = 3;
int doit_with_this(int x) => x + 1;
}
T id<T>(T x) => x;
class B {
int x;
final int y;
String get z {
return "";
}
void set z(int _) {}
}
class Bound {}
class C<T extends Bound> {}
void hasBound<T extends Bound>() {}
Object k;
class D<T> {
Y id<Y>(Y x) => x;
m(List<T> l) {
assert(l is List<T>);
}
foo() {
List<T> s;
}
}
main() {
exit(0);
}