Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add -Xsource:3 option. avoid deprecated with #181

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

xuwei-k
Copy link
Member

@xuwei-k xuwei-k commented Oct 3, 2024

Welcome to Scala 3.5.1 (1.8.0_422, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.

scala> trait A; trait B; trait C { self : A with B => }
1 warning found
-- [E003] Syntax Warning: ------------------------------------------------------
1 |trait A; trait B; trait C { self : A with B => }
  |                                     ^^^^
  |                with as a type operator has been deprecated; use & instead
  |
  | longer explanation available when compiling with `-explain`
// defined trait A
// defined trait B
// defined trait C

scala> trait A; trait B; trait C { self : A & B => }
// defined trait A
// defined trait B
// defined trait C

```
Welcome to Scala 3.5.1 (1.8.0_422, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.

scala> trait A; trait B; trait C { self : A with B => }
1 warning found
-- [E003] Syntax Warning: ------------------------------------------------------
1 |trait A; trait B; trait C { self : A with B => }
  |                                     ^^^^
  |                with as a type operator has been deprecated; use & instead
  |
  | longer explanation available when compiling with `-explain`
// defined trait A
// defined trait B
// defined trait C

scala> trait A; trait B; trait C { self : A & B => }
// defined trait A
// defined trait B
// defined trait C
```
@eed3si9n eed3si9n merged commit c39f455 into sbt:develop Oct 4, 2024
5 checks passed
@xuwei-k xuwei-k deleted the replace-with branch October 4, 2024 02:46
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.

2 participants