Open
Description
opened on Sep 29, 2024
Play Version
3.0.5
API
scala 3.3.3
Operating System
ubuntu 20.04
JDK
17.0.9
Library Dependencies
twirl default version with play framework
Expected Behavior
- we can use given/using in scala3 , it is very import tools to replace implict
- twirl supports scala3
- so we can use given/using in twirl
Actual Behavior
- can not identify using keyword in a template file, when it is used as function parameters
Reproducible Test Case
on top of a template, we define the input parameters like this:
@(tagList: Seq[TagCloud], bottomFlag: Boolean = false)(using siteConfig: play.api.Configuration)
error log:
/app/views/index.scala.html:6:66: By-name parameter type => play.twirl.api.HtmlFormat.Appendable not allowed here.
Metadata
Assignees
Labels
No labels
Activity