Cannot test with `r3.1` and then `c3.1.0`
See original GitHub issueCompiler version
300a8b688b9d671341dad58b097367037015b656
Minimized example
// tests/pos/mytest/A_1_r3.1.scala
class Foo
// tests/pos/mytest/B_2_c3.1.0.scala
class Bar extends Foo
Output
sbt> testCompilation tests/pos/mytest
...
No files matched "mytest" in test
[info] Test dotty.tools.dotc.CompilationTests.posMacros started
Compilation failed for: 'tests/pos/mytest'
[=======================================] completed (1/1, 1 failed, 3s)
...
Expectation
Should pass.
Should also show the error (see #14303).
Issue Analytics
- State:
- Created 2 years ago
- Comments:20 (12 by maintainers)
Top Results From Across the Web
Exam 2 Solutions
Exam 2 Solutions. Problem 1. In the circuit shown, R1=100 Ω, R2=25 Ω, and the ideal batteries have EMFs of ε1 = 6.0...
Read more >Cloud One Workload Security FAQs
Get the answers to the most common inquiries asked about Cloud One™ ... What should I do if "Integrity Monitoring Compile Issue" appeared...
Read more >Enable enhanced networking with the Intel 82599 VF interface ...
16xlarge ), and R3. Launch the instance from a 64-bit HVM AMI. You can't enable enhanced networking on Windows Server 2008 and Windows...
Read more >Linear dependence and independence (chapter. 4)
Linear independence—examples. The following sets of vectors are all linearly independent: •. {. [1]. } is a linearly independent subset of R.
Read more >MATH 304 Linear Algebra Lecture 30: The Gram-Schmidt ...
Then p = 〈x,v〉. 〈v,v〉 v is the orthogonal projection of the vector x onto ... Problem. Let Π be the plane in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
IMO we have two separate problems which we are unnecessarily trying to solve with a single mechanism:
I think the
-Yas-experimental
solution alone wouldn’t solve our current problem with tests if we don’t change the versioning scheme of TASTy. Let’s have a look at the example from the beginning of this thread:Here we’re compiling some code with
-scala-output-version 3.1
flag using a locally built experimental compiler and then we’re checking if the non-experimental published compiler 3.1.0 can consume the produced TASTy. Even if-Yas-experimental
allowed for consumption of experimental TASTy files by non-experimental compilers there would be a mismatch in minor TASTy version anywayWhat’s more,
-Yas-experimental
as a boolean flag would be ambiguous because experimental version can be greater than 1.I would then suggest the following solutions to the problems I mentioned at the beginning of this comment:
-SN
meaning-SNAPSHOT
or-NIGHTLY
; TASTy versions withe
suffix are experimental):VersionString
is not an experimental/unstable version when the compiler itself is stable.-Yas-experimental
flag (we might yet think if this is the best name), which:VersionString
of TASTy files produced by a stable compiler so that these files look as if they were produced by an experimental compiler version without actually changing the TASTy version (major, minor and experimental fields).An alternative that might be simpler is to allow stable compiler versions to compile as if they were unstable. We could add a
-Yas-experimental
that would make the compiler behave as a snapshot or nightly: accepting other nightly dependencies but generating TASTy marked as experimental.The advantage of this approach is that we would never be able to publish a TASTy marked as stable from a non-stable version of the compiler. Keeping this strong guarantee seems paramount for the correct behavior published stable artifacts.