Commit f769f29
committed
Unit is not Unit
scala.Unit is companion object of `()`
```
Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_112).
Type in expressions for evaluation. Or try :help.
scala> val a = ()
a: Unit = ()
scala> val b = Unit
b: Unit.type = object scala.Unit
scala> a == b
<console>:14: warning: comparing values of types Unit and Unit.type using `==' will always yield false
a == b
^
res1: Boolean = false
```1 parent bbe3f68 commit f769f29
File tree
1 file changed
+1
-1
lines changed- src/main/scala/gitbucket/gist/controller
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
0 commit comments