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

Unified Diff: src/tests/site/code/types_yes.dart

Issue 83663005: added front page samples to testing, plus a couple of tweaks to front page and code lab (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: changed width of iframe for pirate badge app Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/tests/site/code/types_no.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/tests/site/code/types_yes.dart
diff --git a/src/tests/site/code/types_yes.dart b/src/tests/site/code/types_yes.dart
index 022d31237522d22b13908c404995809c5d06e13b..c74148aaa9848ffcfded355e2cf5d29333557ed2 100644
--- a/src/tests/site/code/types_yes.dart
+++ b/src/tests/site/code/types_yes.dart
@@ -1,11 +1,10 @@
-// With types (and an optional parameter).
-num recalculate(Point origin,
- num offset,
- {bool estimate:false}) {
- // ...
+import 'dart:math' show Point;
+
+void main() {
+ print('Hello, World!');
+// recalculate(1, 'bob', 3);
}
-class Point {
- num x;
- num y;
-}
+num recalculate(Point origin, num offset, {bool estimate: false}) {
+ // ...
+}
« no previous file with comments | « src/tests/site/code/types_no.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698