Skip to content

Where's my side order of effect #10209

@scabug

Description

@scabug

Seems to lose a side effect.

$ scala
Welcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_111).
Type in expressions for evaluation. Or try :help.

scala>  object A { val u: Unit = { println("ok"); () } }
defined object A

scala> A.u

scala> A
ok
res1: A.type = A$@5b35c7d

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions