aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/hello.scala5
-rw-r--r--readme.md12
2 files changed, 12 insertions, 5 deletions
diff --git a/examples/hello.scala b/examples/hello.scala
new file mode 100644
index 000000000..87e0b1e5e
--- /dev/null
+++ b/examples/hello.scala
@@ -0,0 +1,5 @@
+package hello
+
+object world extends App {
+ println("hello dotty!")
+}
diff --git a/readme.md b/readme.md
index cdc52265c..b44bc2333 100644
--- a/readme.md
+++ b/readme.md
@@ -7,8 +7,9 @@ The experimental compiler for a Scala dialect based on DOT.
```
sbt compile
sbt run
+ sbt test
```
-The tests (`sbt test`) don''t work yet.
+At least half of the tests fail, we need to diagnose them.
### To use the Scala IDE:
@@ -20,7 +21,8 @@ Notes:
* There are 2 spurious version incompatibility warnings
* To run dotty in Eclipse:
* Navigate to `dotty.tools.dotc.Main`
- * Run As ... > Scala Application
- * then go to Run Configurations > Main$ > Classpath > Bootstrap entries:
- * add the Scala library (Advanced... > Add library ... > Scala library)
- * add the dotty classfiles (Add projects... > [x] dotty)
+ * `Run As...` > `Scala Application`
+ * then go to `Run Configurations` > `Main$` > `Classpath` > `Bootstrap entries`:
+ * add the Scala library (`Advanced...` > `Add library...` > `Scala library`)
+ * add the dotty classfiles (`Add projects...` > `[x] dotty`)
+ * then go to `Run Configurations` > `Main$` > `Arguments` and add `${project_loc}/examples/hello.scala`