Skip to content

Conversation

@kerams
Copy link
Contributor

@kerams kerams commented Dec 29, 2025

Description

Before

> """ " """B;;

  """ " """B;;
  ^^^^^^^^^

stdin(2,1): error FS0003: This value is not a function and cannot be applied.

After

> """ " """B;;
val it: byte array = [|32uy; 34uy; 32uy|]

Didn't bother with a language feature... Also this could TECHNICALLY be breaking if you have something stupid like this in your code today

> let x a b = 7;;
val x: a: 'a -> b: 'b -> int

> let B = ();;
val B: unit = ()

> x """ " """B;;
val it: int = 7

Checklist

  • Test cases added
  • Performance benchmarks added in case of performance changes
  • Release notes entry updated

@Martin521
Copy link
Contributor

This needs a small RFC, please, in the fslang-design repo. To ensure it ends up in the spec.

@T-Gro
Copy link
Member

T-Gro commented Dec 31, 2025

RFC approved and merged now.

@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Dec 31, 2025
@T-Gro T-Gro merged commit aa5b719 into dotnet:main Dec 31, 2025
37 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in F# Compiler and Tooling Dec 31, 2025
@kerams kerams deleted the b branch December 31, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants