summaryrefslogtreecommitdiff
path: root/test/files/neg
Commit message (Collapse)AuthorAgeFilesLines
* Better check for objects trying to sneak themse...Paul Phillips2010-10-112-0/+12
| | | | | | Better check for objects trying to sneak themselves into the superconstructor arguments. Closes #3913, no review.
* Unreverting r23174. No review.Paul Phillips2010-10-061-1/+1
|
* Improves exhaustiveness analysis to not warn ab...Paul Phillips2010-10-057-3/+67
| | | | | | | | Improves exhaustiveness analysis to not warn about types which cannot match due to nonconformant type parameters. Also, look at the different warnings emitted in the test case based on the presence of a constraint. Nifty! Closes #3683, no review.
* Somewhere along the way AnyVal stopped working ...Paul Phillips2010-10-053-0/+19
| | | | | | Somewhere along the way AnyVal stopped working as sealed. (It was still sealed but had lost its children.) Closes #3163, review by rytz.
* Massively simplified the exhaustiveness checker...Paul Phillips2010-10-053-0/+65
| | | | | | | Massively simplified the exhaustiveness checker with no measurable loss of fidelity. I might be the only one who can be unsurprised by such a bloody diff: anyone else would rightly say "how on earth..." No review.
* Reverts r23174, which I believe will bring the ...Paul Phillips2010-10-041-1/+1
| | | | | | Reverts r23174, which I believe will bring the build back to life. It only chokes under -optimise. No review.
* Another batch of busywork shuffling the content...Paul Phillips2010-10-042-0/+26
| | | | | | Another batch of busywork shuffling the contents of pending around. Can almost see some daylight. No review.
* Pattern matching on Array types, working for re...Paul Phillips2010-10-044-20/+15
| | | | | | | | | | | | | | | | | Pattern matching on Array types, working for reals. def f[T](a: Array[T]) = a match { case x: Array[Int] => x(0) case x: Array[Double] => 2 // etc. } I'd also like to thank "instantiateTypeVar" for displacing the mechanical spiders and giant squid beings which used to fill my nightmares. Now that I know true horror, I welcome the squid. Closes #2755, review by odersky.
* Work on the pattern matcher.Paul Phillips2010-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | patches for #3887 and #3888, but I determined that I could achieve the same effect by deleting a bunch of code, so I did. This left only a few lines in TransMatch, so I eliminated it, which led me to remember that many places still reference non-existent phase transmatch, so those were updated. Notes: * This swaps equality tests on stable identifier patterns. They have never conformed to the spec (as noted long ago in ticket #785) which says "The pattern matches any value v such that r == v" whereas until now the test being performed was v == r. * An issue was introduced with specialization in that the implementation of "isTupleType" in Definitions relied upon sym == TupleClass(elems.length). This test is untrue for specialized tuples, causing mysterious behavior because only some tuples are specialized. There is now "isTupleTypeOrSubtype" although it seems likely the former implementation is unnecessary. The issue is sidestepped if one uses "getProductArgs" to retrieve the element types because it sifts through the base types for the Product symbol. Closes #3887 and #3888, review by dmharrah.
* One last batch of test cleanups and I think I'l...Paul Phillips2010-10-036-0/+41
| | | | | | | One last batch of test cleanups and I think I'll call it a day. If you're worried I didn't leave any for anyone else, let me put your fears to rest. PLENTY left to sift through. No review.
* The next batch of tests put up a little more st...Paul Phillips2010-10-022-0/+55
| | | | | | | | | | | | | | The next batch of tests put up a little more struggle, but only a little. See test/pending/pos/unappgadteval.scala (the changes for which were in the previous commit) for an example of a test which might be on to something. Any idea what it would take to get it working? // the key lines case i @ Suc() => { (y: Int) => y + 1 } // a = Int => Int case f @ Lam[b,c](x, e) => { (y: b) => eval(e, env.extend(x, y)) } // a = b=>c No review.
* Sorting through the tests in pending from oldes...Paul Phillips2010-10-022-0/+10
| | | | | | | | | | | | | | | | | Sorting through the tests in pending from oldest to newest because I don't believe in having useless appendages. The verdict on the oldest fifteen tests is: 15/15 are fixed. Many were already in files under a different name. I moved a few and deleted the rest. Fun fact of the day: apparently there was a time when to call into java varargs with no arguments you might have to write something like: getClass().getMethod("getCount", Array[java.lang.Class[T] forSome { type T }]()) On this basis I retract any complaints I've ever had about anything. There is one question mark outlined in pos/testCoercionThis.scala, a file formerly called pos/moors.scala and therefore... review by moors.
* closes #3873.Adriaan Moors2010-09-273-0/+19
| | | | | review by maier as no good deed goes unpunished
* Some progress on reviving TreeCheckers, plus a ...Paul Phillips2010-09-242-2/+2
| | | | | | | | Some progress on reviving TreeCheckers, plus a couple bugfixes and better error messages revealed by that progress. Also applied tiny increment in understanding to fixing up TreeDSL some more. The hand of martin guides from above, so no review.
* Test case closes #3774, no review.Paul Phillips2010-09-222-0/+10
|
* Test case closes #1548, no review.Paul Phillips2010-09-223-0/+19
|
* closes #1569, #3731: refactored dependent metho...Adriaan Moors2010-09-163-0/+16
| | | | | | | | | | | | | | closes #1569, #3731: refactored dependent method types to get rid of debruijn indices and use singleton types instead. this is the core of the dependent types refactoring, no implicit or inference changes (one baffling discovery: resultType should drop annotations that don't subclass TypeConstraint, even in the trivial case... wow -- thanks to Tiark for helping me figure it out on a terrace in Barcelona TODO: probably need a more principled approach to the propagation of plugin type-annotations) review by odersky
* positioning fix for infix expressions: report e...Paul Phillips2010-09-158-8/+19
| | | | | | | | | | | | positioning fix for infix expressions: report error at the operator instead of at the receiver of a binop In general use the operator position as the Select position's point instead of the left or right expression. Position.union always uses the receiver's point as point of the result, so swapping fixes that. See http://www.scala-lang.org/node/6912 for the report.
* closes #1693: improve implicit conversion disam...Adriaan Moors2010-09-141-10/+1
| | | | | | | | | | | closes #1693: improve implicit conversion disambiguation by incorporating the expected type of the member that triggered the conversion back-ported fix by Martin in embeddings branch. review by odersky (just in case it shouldn't have been back-ported)
* closes #3692: make instantiateTypeVar more care...Adriaan Moors2010-09-142-0/+31
| | | | | | | | closes #3692: make instantiateTypeVar more careful so it does not change T's info to >: T <: T. review by odersky
* relax implicit divergence checkAdriaan Moors2010-09-141-2/+1
| | | | | | | | patch contributed by Mark Harrah in http://article.gmane.org/gmane.comp.lang.scala/20700 reviewed by moors and odersky
* better error message for default arguments.Lukas Rytz2010-09-032-13/+20
|
* Partial fix for #3774.Martin Odersky2010-08-312-0/+12
|
* this should fix our achy breaky build. no reviewAdriaan Moors2010-08-262-2/+4
|
* Closes #3776. No review.Martin Odersky2010-08-241-0/+10
|
* new tests. No review.Martin Odersky2010-08-241-0/+2
|
* in refchecks, visit the qualifier of irrefutabl...Lukas Rytz2010-08-233-0/+10
| | | | | | in refchecks, visit the qualifier of irrefutable filters. close #3773. review by moors.
* test for see #3769. no review.Lukas Rytz2010-08-232-0/+13
|
* forgot to update check file after renaming tests.Adriaan Moors2010-08-212-4/+4
|
* closes 2462. better implicit error messages.Adriaan Moors2010-08-204-0/+33
| | | | | | | | | | | | | | | | | | @implicitNotFound(msg="Custom error message that may refer to type parameters ${T} and ${U}") trait Constraint[T, U] whenever an implicit argument of type Constraint[A, B] cannot be found, the custom error message will be used, where the type arguments are interpolated in the obvious way note: if the msg in the annotation references non-existing type params, a warning is emitted the patch also cleans up annotation argument retrieval (moved it to AnnotationInfo from Symbol) review by odersky
* closes #3575.Adriaan Moors2010-08-203-0/+14
| | | | | | | | | | cloneSymbol now preserves privateWithin -- need to reset it explicitly now when before it was assumed to be not to be carried over rewrote accessibility in overriding checks so they're more readable, but hopefully with same semantics review by odersky
* Revert "closes #3757.Adriaan Moors2010-08-143-15/+0
| | | | | | | Martin's review indicated this needs a better solution. This reverts commit 6a62875b08f8a2c80aefee313f86429b2793ee2e.
* closes #3757.Adriaan Moors2010-08-143-0/+15
| | | | | | | | (I verified the added access check does not increase time for ant test-opt) review by odersky
* closes #3691.Adriaan Moors2010-08-142-0/+27
| | | | | | | | TODO: clean this up, introduce datatypes to denote kinds, split checkKindBounds into kind inference and subkind checking review by odersky
* closes #3663.Adriaan Moors2010-08-133-0/+23
| | | | | | | | | | | | | | namers wasn't setting privateWithin on java-defined variables (btw, ) shouldn't clone carry over privateWithin? better treatment of linked ) class access boundary (only check for access within linked class if it ) actually exists ) would have liked more control for the test case: only javac should compile the java file, then scalac should compile the scala file and fail review by odersky
* closes #3419: test filesAdriaan Moors2010-08-132-8/+11
| | | | | | | | | | | | omit check that wouldn't work with separate compilation, not needed anymore because compiler has become more robust the actual fix was committed as part of r22512, see #3374 also see #3512 no review
* Fixed type soundness problem someone raised on ...Martin Odersky2010-08-122-0/+20
| | | | | | Fixed type soundness problem someone raised on hackers news. Test in override.scala. Review by moors.
* An overhaul of checkSensible.Paul Phillips2010-08-103-62/+160
| | | | | | | | gives fewer insensible warnings about actually sensible things, etc. Large test case with 30 warnings elicited. Closes #282 (again), no review.
* Modified r22702 to avoid tarring overloads with...Paul Phillips2010-08-071-0/+13
| | | | | | Modified r22702 to avoid tarring overloads with the same brush. No review.
* Disallowed super.XX calls to Any methods which ...Paul Phillips2010-08-072-0/+34
| | | | | | | | | | Disallowed super.XX calls to Any methods which are presently either crashing the compiler (isInstanceOf) or leading to runtime failure (== and !=) in addition to one which was being rewritten to a this call but makes more sense disallowed like the others (##). Closes #3736, review by odersky.
* close #3403.Lukas Rytz2010-08-062-0/+6
|
* fix the failing test. review by dubochet.Lukas Rytz2010-08-051-1/+1
|
* close #3685. review by moors.Lukas Rytz2010-08-052-1/+74
|
* added @deprecatedName annotation, allowing to d...Lukas Rytz2010-08-035-5/+47
| | | | | | added @deprecatedName annotation, allowing to deprecate parameter names. review by prokopec.
* close #3648 (again).Lukas Rytz2010-07-132-5/+13
|
* Closes #3653.Adriaan Moors2010-07-122-0/+11
| | | | | | | | | | no review Author: Mark Harrah <dmharrah@gmail.com> Date: Thu Jul 8 10:30:57 2010 -0400 Source: http://github.com/harrah/scala-starrless/commit/0c7759c95b47cebc6d9fa77cefd34ef638e2706e Reviewer: moors
* closes #742.Adriaan Moors2010-07-082-0/+13
| | | | | review by extempore
* closes #3507: don't generate manifests where we...Adriaan Moors2010-07-082-0/+19
| | | | | | closes #3507: don't generate manifests where we can't refer to the existentially bound value
* closes #3399.Adriaan Moors2010-07-082-0/+28
| | | | | | | this broke the invariant that argss is a regular matrix review by odersky
* closes #3374.Adriaan Moors2010-07-082-17/+17
| | | | | review by odersky