A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.scala-lang.org/scala3/reference/dropped-features/procedure-syntax.html below:

Dropped: Procedure Syntax

Generated with

Copyright (c) 2002-2025, LAMP/EPFL

Copyright (c) 2002-2025, LAMP/EPFL

Edit this page on GitHub Dropped: Procedure Syntax

Procedure syntax

has been dropped. You need to write one of the following instead:

def f() = { ... }
def f(): Unit = { ... }

Scala 3 accepts the old syntax under the -source:3.0-migration option. If the -migration option is set, it can even rewrite old syntax to new. The Scalafix tool also can rewrite procedure syntax to make it Scala 3 compatible.

Generated with

Copyright (c) 2002-2025, LAMP/EPFL

Copyright (c) 2002-2025, LAMP/EPFL


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4