aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2231 from dotty-staging/fix-#2230Guillaume Martres2017-04-131-0/+22
|\ | | | | Fix #2230: Add regression test.
| * Fix #2230: Add regression test.Nicolas Stucki2017-04-121-0/+22
| |
* | Merge pull request #2209 from dotty-staging/fix-#2152odersky2017-04-131-0/+7
|\ \ | | | | | | Fix #2152: Instantiate dependent result type parameters
| * | Fix #2152: Instantiate dependent result type parametersMartin Odersky2017-04-111-0/+7
| | | | | | | | | | | | | | | | | | | | | #2152 shows that dependent result type parameters can end up in the types of terms, so we have to eliminate them. If we don't we get orphan parameters in pickling. Fix method name and comment
* | | Revert <: Product requierment in pattern matchingOlivier Blanvillain2017-04-131-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change in question broke the following pattern, commonly used in name based pattern matching: ```scala object ProdEmpty { def _1: Int = ??? def _2: String = ??? def isEmpty = true def get = this } ``` This type define both `_1` and `get` + `isEmpty` (but is not <: Product). After #1938, `ProdEmpty` became eligibles for both product and name based pattern. Because "in case of ambiguities, *Product Pattern* is preferred over *Name Based Pattern*", isEmpty wouldn't be used, breaking the scalac semantics.
* | | Add ability to only compile run testsFelix Mulder2017-04-121-7/+0
| | |
* | | Implement meta tests suggested by @DarkDimiusFelix Mulder2017-04-125-0/+76
| | | | | | | | | | | | | | | | | | Note that merging this as-is will not protect us against fork bombs. This is because the timeout of tests is currently 180 seconds. A forkbomb that is allowed to run for that long...
* | | Disable scalac internals testsFelix Mulder2017-04-127-0/+1
| | |
* | | Merge pull request #2229 from dotty-staging/sync-classfile-parserodersky2017-04-123-0/+32
|\ \ \ | |_|/ |/| | Port some ClassfileParser changes from scalac
| * | Disable t5293, benchmarks should not be run as testsGuillaume Martres2017-04-111-0/+0
| | |
| * | SI-9915 Utf8_info are modified UTF8Guillaume Martres2017-04-112-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | Adapted from scalac commit 3c5990ce5839f4bdfca8fed7f2c415a72f6a8bd8 by Som Snytt: Use DataInputStream.readUTF to read CONSTANT_Utf8_info. This fixes reading embedded null char and supplementary chars.
* | | Merge pull request #2225 from dotty-staging/fix-#2192odersky2017-04-112-3/+21
|\ \ \ | |/ / |/| | Fix #2212: Avoid imports in the wrong namespace
| * | Increase time limit for failing testMartin Odersky2017-04-111-3/+2
| | |
| * | Fix #2212: Avoid imports in the wrong namespaceMartin Odersky2017-04-111-0/+19
| | | | | | | | | | | | | | | | | | Don't issue an error if when considering a named import that refers to a valoe or type which does not exist. Instead, disregard the import an continue.
* | | Merge pull request #2228 from dotty-staging/fix-#2218odersky2017-04-111-0/+9
|\ \ \ | | | | | | | | Fix #2218: Add fullyDefinedType for class parent types
| * | | Add fullyDefinedType for class parent typesMartin Odersky2017-04-111-0/+9
| | |/ | |/| | | | | | | | | | | | | If we do not do that, any type variables in the parent type get interpolated later, when the whole primary constructor is typed. But by then we miss the context of what their variance was.
* | | Merge pull request #2216 from dotty-staging/fix-2163odersky2017-04-111-0/+21
|\ \ \ | |/ / |/| | fix #2163: don't narrow liftedOwner if symbol is InSuperCall
| * | Remove check fileMartin Odersky2017-04-111-1/+0
| | |
| * | Handle supercalls in inner classes correctlyMartin Odersky2017-04-111-2/+14
| | | | | | | | | | | | | | | | | | The previous fix was too coarse. We need to move an anonymous function in a supercall towards the call, we just have to make sure it's not in the directly enclosing class.
| * | add missing printliu fengyun2017-04-111-1/+1
| | |
| * | fix #2163: don't narrow liftedOwner if symbol is InSuperCallliu fengyun2017-04-112-0/+10
| | |
* | | Fix #2219: Fix type applications on WildcardTypeGuillaume Martres2017-04-111-0/+7
|/ / | | | | | | | | | | | | Previously we just returned the unapplied WildcardType which is incorrect if the WildcardType is bounded. The proper thing to do is to do the type application on the bounds of the WildcardType and wrap the result in a WildcardType.
* | Merge pull request #1938 from dotty-staging/named-based-patmatFelix Mulder2017-04-116-0/+111
|\ \ | | | | | | Change case class desugaring and decouple Products and name-based-pattern-matching
| * | Add testsOlivier Blanvillain2017-04-066-0/+111
| | | | | | | | | | | | | | | | | | - t7296 & case-class-23 are moved out of pending - 1938 tests productElement > 23
* | | Merge pull request #2215 from dotty-staging/#2142odersky2017-04-111-0/+28
|\ \ \ | | | | | | | | Fix #2142: Skolemize arguments of dependent methods if necessary
| * | | Skolemize arguments to dependent methods as necessary.Martin Odersky2017-04-101-0/+28
| | | | | | | | | | | | | | | | This was missing before, led to errors not being detected.
* | | | Merge pull request #2197 from dotty-staging/add-enum-exhaustivenessodersky2017-04-1010-5/+98
|\ \ \ \ | | | | | | | | | | Add enum exhaustivity checking
| * | | | add more enum exhaustivity testsliu fengyun2017-04-063-0/+77
| | | | |
| * | | | exhaustivity support for enumsliu fengyun2017-04-066-5/+17
| | | | |
| * | | | Add child annotations for enum valuesMartin Odersky2017-04-061-0/+4
| | |/ / | |/| | | | | | | | | | | | | | A new kind of child annotation that points to the term symbol representing an enum value.
* | | | Merge pull request #2206 from dotty-staging/fix-#2198odersky2017-04-101-0/+6
|\ \ \ \ | |_|/ / |/| | | Fix #2198: Don't widen module singletons
| * | | Fix #2198: Don't widen module singletonsMartin Odersky2017-04-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since module classes are a compiler-generated construct that's not directly visible to programmers, it seems better not to automatically widen a module singleton to its underlying class. Fixes #2198.
* | | | Merge pull request #2207 from dotty-staging/fix-#2188Nicolas Stucki2017-04-091-0/+5
|\ \ \ \ | | | | | | | | | | Fix #2188: Do cbn transform also on Selects
| * | | | Fix #2188: Do cbn transform also on SelectsMartin Odersky2017-04-091-0/+5
| |/ / / | | | | | | | | | | | | These can arise as a result of an explicit outer transform.
* | | | Merge pull request #2208 from dotty-staging/fix-#2192Guillaume Martres2017-04-091-0/+7
|\ \ \ \ | | |_|/ | |/| | Fix #2192: Follow supertypes when determining whether an expect type …
| * | | Fix #2192: Fullow supertypes when determining whether an expect type is a ↵Martin Odersky2017-04-091-0/+7
| |/ / | | | | | | | | | function type
* | | Merge pull request #2205 from dotty-staging/fix-#2220odersky2017-04-092-0/+10
|\ \ \ | |/ / |/| | Fix #2220: Change handling of package objects and tweak hk type inference
| * | Tweak logic for hk type comparisonsMartin Odersky2017-04-092-0/+10
| | |
* | | Fix #2201: Less aggressive type application reduction for better inferenceGuillaume Martres2017-04-083-0/+33
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we believed that reducing type applications did not affect type inference as long as the reduced type constructor had the same arity as the unreduced one, for example reducing `Foo[X, Y]` is fine when `Foo` is defined as: type Foo[A, B] = Bar[A, B] but not when it's defined as: type Foo[A] = Bar[A, A] But this is not a sufficient condition: the bounds of the type constructor arguments also matter for type inference, so we need to be more strict and disallow reductions in cases like: type Foo[A, B] = Bar[B, A] and: type Foo[A, B] = Bar[A, Int]
* | Merge pull request #2187 from dotty-staging/fix-2166odersky2017-04-061-0/+5
|\ \ | |/ |/| fix #2166: unpickling of shared CaseDef
| * fix #2166: unpickling of shared CaseDefliu fengyun2017-04-041-0/+5
| |
* | Merge pull request #1958 from dotty-staging/add-enumodersky2017-04-0625-32/+246
|\ \ | | | | | | Add "enum" construct
| * | Another test fixedMartin Odersky2017-04-051-1/+1
| | |
| * | Update test and add check fileMartin Odersky2017-04-052-1/+9
| | |
| * | Implementation of proposal changesMartin Odersky2017-04-053-5/+31
| | | | | | | | | | | | | | | - rename utility methods - generate utility methods also for object cases
| * | Add check fileMartin Odersky2017-04-051-0/+1
| | |
| * | New and updated testsMartin Odersky2017-04-044-3/+37
| | |
| * | Infer enum type args from type parameter boundsMartin Odersky2017-04-041-1/+12
| | | | | | | | | | | | | | | | | | Infer type arguments for enum paraments from corresponding type parameter bounds. This only works if the type parameter in question is variant and its bound is ground.
| * | Fix neg test error countMartin Odersky2017-04-041-1/+1
| | | | | | | | | | | | | | | Previous expansion caused 3 spurious follow-on errors which are now avoided.
| * | Support cases with type parameters that extend a non-parameterized baseMartin Odersky2017-04-041-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | Support cases with type parameters that implicitly extend a non-parameterized base without needing their own extends clause. The proposal has been updated to make clear that this is supported. Also address other reviewers comments.