Skip to content

Commit 9801414

Browse files
authored
Merge pull request #1581 from cvogt/patch-1
cbt dotty usage
2 parents fb1dbba + 1358ad6 commit 9801414

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/docs/usage/cbt-projects.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
layout: default
3+
title: "cbt"
4+
---
5+
6+
Using Dotty with cbt
7+
====================
8+
cbt comes with built-in dotty support. Follow the
9+
[cbt tutorial](https://github.com/cvogt/cbt/), then simply extend `Dotty` in the Build class.
10+
11+
```scala
12+
// build/build.scala
13+
import cbt._
14+
class Build(val context: Context) extends Dotty{
15+
...
16+
}
17+
```
18+
19+
Also see the [example project](https://github.com/cvogt/cbt/tree/master/examples/dotty-example).

0 commit comments

Comments
 (0)