-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #594 from mkurz/resultType_localDef
Allow defining result type for local methods (needed for Scala 3 implicits)
- Loading branch information
Showing
6 changed files
with
207 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@**************************************************************************************************************************************************** | ||
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com> * | ||
****************************************************************************************************************************************************@ | ||
|
||
@() | ||
|
||
@person(firstname: String, lastname: String) = @{ | ||
s"$firstname-$lastname" | ||
} | ||
@country(city: String, country: String): String = @{ | ||
s"$city-$country" | ||
} | ||
@region(continent: String):String=@{ | ||
s"$continent" | ||
} | ||
@slogan()=@{ s"The High Velocity Web Framework For Java and Scala" } | ||
@year=@{ s"2023" } | ||
|
||
@person("Play", "Framework")-@country("Vienna", "Austria")-@region("Europe")-@slogan()-@year |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters