Skip to content

Conversation

som-snytt
Copy link
Contributor

Fixes #21321

Just an edge case.

I tried emitting TypeMismatch with addenda, but it didn't render, so that was too much hassle just to add a string.

This is the existing notice; it doesn't indicate why it doesn't work.

2 |val v1: scala.ContextFunction0[String] = "x" // error
  |                                         ^^^
  |                                         Found:    ("x" : String)
  |                                         Required: () ?=> String

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(minor) usage of scala.ContextFunction0 should produce "context function types require at least one parameter" error
1 participant