-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Safe initialization for Scala #7789
Commits on Feb 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for baccbd8 - Browse repository at this point
Copy the full SHA baccbd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 337c4b6 - Browse repository at this point
Copy the full SHA 337c4b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52c8441 - Browse repository at this point
Copy the full SHA 52c8441View commit details -
Configuration menu - View commit details
-
Copy full SHA for 91baf28 - Browse repository at this point
Copy the full SHA 91baf28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68ec7ec - Browse repository at this point
Copy the full SHA 68ec7ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for f47577a - Browse repository at this point
Copy the full SHA f47577aView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa6c182 - Browse repository at this point
Copy the full SHA fa6c182View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb513dc - Browse repository at this point
Copy the full SHA bb513dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 891d6d8 - Browse repository at this point
Copy the full SHA 891d6d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ac3356 - Browse repository at this point
Copy the full SHA 1ac3356View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0494ac1 - Browse repository at this point
Copy the full SHA 0494ac1View commit details -
Configuration menu - View commit details
-
Copy full SHA for cbc4a31 - Browse repository at this point
Copy the full SHA cbc4a31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 820c67b - Browse repository at this point
Copy the full SHA 820c67bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f11bf6 - Browse repository at this point
Copy the full SHA 6f11bf6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c58a967 - Browse repository at this point
Copy the full SHA c58a967View commit details -
Configuration menu - View commit details
-
Copy full SHA for 073eec2 - Browse repository at this point
Copy the full SHA 073eec2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 594c1bf - Browse repository at this point
Copy the full SHA 594c1bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 94267d7 - Browse repository at this point
Copy the full SHA 94267d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for b94ce00 - Browse repository at this point
Copy the full SHA b94ce00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67e7165 - Browse repository at this point
Copy the full SHA 67e7165View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5e1c68 - Browse repository at this point
Copy the full SHA e5e1c68View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc680dc - Browse repository at this point
Copy the full SHA dc680dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5310886 - Browse repository at this point
Copy the full SHA 5310886View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e6a181 - Browse repository at this point
Copy the full SHA 6e6a181View commit details -
Configuration menu - View commit details
-
Copy full SHA for 994c240 - Browse repository at this point
Copy the full SHA 994c240View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4eb8eaa - Browse repository at this point
Copy the full SHA 4eb8eaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9244e27 - Browse repository at this point
Copy the full SHA 9244e27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06ee111 - Browse repository at this point
Copy the full SHA 06ee111View commit details -
Configuration menu - View commit details
-
Copy full SHA for e923bf4 - Browse repository at this point
Copy the full SHA e923bf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 617a6d9 - Browse repository at this point
Copy the full SHA 617a6d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f76c6a - Browse repository at this point
Copy the full SHA 4f76c6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 554620c - Browse repository at this point
Copy the full SHA 554620cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 949a009 - Browse repository at this point
Copy the full SHA 949a009View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c59fee - Browse repository at this point
Copy the full SHA 5c59feeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 13ce15e - Browse repository at this point
Copy the full SHA 13ce15eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 917ac30 - Browse repository at this point
Copy the full SHA 917ac30View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d34ea1 - Browse repository at this point
Copy the full SHA 5d34ea1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f7c853 - Browse repository at this point
Copy the full SHA 9f7c853View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac2b9dc - Browse repository at this point
Copy the full SHA ac2b9dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for bcd7c58 - Browse repository at this point
Copy the full SHA bcd7c58View commit details -
Configuration menu - View commit details
-
Copy full SHA for 077eb5b - Browse repository at this point
Copy the full SHA 077eb5bView commit details -
Class parameters are always initialized before parent constructor calls and class body fields.
Configuration menu - View commit details
-
Copy full SHA for 8a9c0cf - Browse repository at this point
Copy the full SHA 8a9c0cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 25c7a90 - Browse repository at this point
Copy the full SHA 25c7a90View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf917a7 - Browse repository at this point
Copy the full SHA bf917a7View commit details -
Handle A & B for this via self type
We need to keep all components, as in asSeenFrom all will become empty except the class that contains the code for `this`.
Configuration menu - View commit details
-
Copy full SHA for 8ba171c - Browse repository at this point
Copy the full SHA 8ba171cView commit details -
Previous code gets the constructor symbol instead of the class symbol.
Configuration menu - View commit details
-
Copy full SHA for 99679b8 - Browse repository at this point
Copy the full SHA 99679b8View commit details -
In case of local class, the outer is the enclosing class. In checking a class, no need to check args in parent calls, as they are hot. Checking them is subtle, as access of class params are final instead of virtual. Meanwhile, posttyper generates confusing accessor: ``` abstract class Base(val x: Int) class C(x: Int) extends Base(x) ``` After posttyper: ``` abstract class Base(val x: Int) class C(x: Int) extends Base(C.this.x) { private def x: Int = super.x } ``` The accessor `def x: Int = super.x` makes it subtle to give semantics to `Base(C.this.x)`.
Configuration menu - View commit details
-
Copy full SHA for 43d46cd - Browse repository at this point
Copy the full SHA 43d46cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b99ffc - Browse repository at this point
Copy the full SHA 9b99ffcView commit details -
Configuration menu - View commit details
-
Copy full SHA for ec03ffd - Browse repository at this point
Copy the full SHA ec03ffdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e3e41d - Browse repository at this point
Copy the full SHA 6e3e41dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ab9c8b - Browse repository at this point
Copy the full SHA 8ab9c8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 38c2d1d - Browse repository at this point
Copy the full SHA 38c2d1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c7d2a0a - Browse repository at this point
Copy the full SHA c7d2a0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0e54b0 - Browse repository at this point
Copy the full SHA d0e54b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10c620d - Browse repository at this point
Copy the full SHA 10c620dView commit details -
Fix missed effects in new-expressions
All inner-outer tests are green
Configuration menu - View commit details
-
Copy full SHA for d2d498b - Browse repository at this point
Copy the full SHA d2d498bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 97e4ee4 - Browse repository at this point
Copy the full SHA 97e4ee4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9996f50 - Browse repository at this point
Copy the full SHA 9996f50View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6cabb4 - Browse repository at this point
Copy the full SHA e6cabb4View commit details -
Configuration menu - View commit details
-
Copy full SHA for f351d80 - Browse repository at this point
Copy the full SHA f351d80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 60cbb7d - Browse repository at this point
Copy the full SHA 60cbb7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a9b409 - Browse repository at this point
Copy the full SHA 1a9b409View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58c8dc1 - Browse repository at this point
Copy the full SHA 58c8dc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a1fbfa - Browse repository at this point
Copy the full SHA 0a1fbfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 56d402e - Browse repository at this point
Copy the full SHA 56d402eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ea4894 - Browse repository at this point
Copy the full SHA 3ea4894View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89b0815 - Browse repository at this point
Copy the full SHA 89b0815View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99e42b5 - Browse repository at this point
Copy the full SHA 99e42b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79de26c - Browse repository at this point
Copy the full SHA 79de26cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 02ddbd7 - Browse repository at this point
Copy the full SHA 02ddbd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10f51f7 - Browse repository at this point
Copy the full SHA 10f51f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c48a8e4 - Browse repository at this point
Copy the full SHA c48a8e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41ffc62 - Browse repository at this point
Copy the full SHA 41ffc62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89972d3 - Browse repository at this point
Copy the full SHA 89972d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c96a4b - Browse repository at this point
Copy the full SHA 4c96a4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cf5dcb - Browse repository at this point
Copy the full SHA 3cf5dcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for cd57149 - Browse repository at this point
Copy the full SHA cd57149View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11e5767 - Browse repository at this point
Copy the full SHA 11e5767View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e04d6e - Browse repository at this point
Copy the full SHA 1e04d6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2976e97 - Browse repository at this point
Copy the full SHA 2976e97View commit details -
Configuration menu - View commit details
-
Copy full SHA for bef686a - Browse repository at this point
Copy the full SHA bef686aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 414d8a8 - Browse repository at this point
Copy the full SHA 414d8a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0480b96 - Browse repository at this point
Copy the full SHA 0480b96View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2a3a8b - Browse repository at this point
Copy the full SHA d2a3a8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb1a49c - Browse repository at this point
Copy the full SHA eb1a49cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c16fd9 - Browse repository at this point
Copy the full SHA 3c16fd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21b5662 - Browse repository at this point
Copy the full SHA 21b5662View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e0268c - Browse repository at this point
Copy the full SHA 2e0268cView commit details -
Promote is more semantically correct than Leak: leaking means something bad, but promotion is neutral or positive. A warning may be reported if the promotion is unsafe.
Configuration menu - View commit details
-
Copy full SHA for a9a6742 - Browse repository at this point
Copy the full SHA a9a6742View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2b4976 - Browse repository at this point
Copy the full SHA b2b4976View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ac188f - Browse repository at this point
Copy the full SHA 2ac188fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 085cf64 - Browse repository at this point
Copy the full SHA 085cf64View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b12559 - Browse repository at this point
Copy the full SHA 9b12559View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a5c718 - Browse repository at this point
Copy the full SHA 4a5c718View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce42450 - Browse repository at this point
Copy the full SHA ce42450View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ed50b8 - Browse repository at this point
Copy the full SHA 8ed50b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 49e3efb - Browse repository at this point
Copy the full SHA 49e3efbView commit details -
Configuration menu - View commit details
-
Copy full SHA for d4b54a7 - Browse repository at this point
Copy the full SHA d4b54a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c2d818 - Browse repository at this point
Copy the full SHA 3c2d818View commit details -
Configuration menu - View commit details
-
Copy full SHA for a42bab2 - Browse repository at this point
Copy the full SHA a42bab2View commit details -
Fix exception: not all traits have constructors
ErasedFunctionX does not have constructors, thus no need to follow. dotc -d out -Yerased-terms -Ycheck-init tests/run-custom-args/erased/erased-15.scala
Configuration menu - View commit details
-
Copy full SHA for 6ded31f - Browse repository at this point
Copy the full SHA 6ded31fView commit details -
Fix exception: Any and AnyVal don't have constructors
dotc -d out -Ycheck-init tests/run/vc-equals.scala
Configuration menu - View commit details
-
Copy full SHA for 2e54c6a - Browse repository at this point
Copy the full SHA 2e54c6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 328f6a9 - Browse repository at this point
Copy the full SHA 328f6a9View commit details -
The method name is not an invariant: dotc -d out -Ycheck-init tests/pos/i4350.scala
Configuration menu - View commit details
-
Copy full SHA for ba63e45 - Browse repository at this point
Copy the full SHA ba63e45View commit details -
Fix crash: SuperType.supertpe can be AndType
dotc -d out -Ycheck-init tests/pos/SI-4012-b.scala
Configuration menu - View commit details
-
Copy full SHA for d3ce80a - Browse repository at this point
Copy the full SHA d3ce80aView commit details -
Fix crash: polymorphic function apply does not have symbols
dotc -d out -Ycheck-init tests/run/polymorphic-functions.scala
Configuration menu - View commit details
-
Copy full SHA for 4d500bd - Browse repository at this point
Copy the full SHA 4d500bdView commit details -
Fix crash: handle annotations in parents
dotc -d out -Ycheck-init tests/pos/annot.scala
Configuration menu - View commit details
-
Copy full SHA for 8379ee1 - Browse repository at this point
Copy the full SHA 8379ee1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8192b2c - Browse repository at this point
Copy the full SHA 8192b2cView commit details -
It should return a tuple of effects and potentials due to length limit. Previously, the effects are checked but the errors are thrown away.
Configuration menu - View commit details
-
Copy full SHA for 5581d74 - Browse repository at this point
Copy the full SHA 5581d74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b5fc1a - Browse repository at this point
Copy the full SHA 7b5fc1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1694e4a - Browse repository at this point
Copy the full SHA 1694e4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a4d06a - Browse repository at this point
Copy the full SHA 6a4d06aView commit details