Commit graph

218 commits

Author SHA1 Message Date
Adam Strzelecki
179d82c55b Fix #2662: Don't convert subtype typedesc params
There is no point to issue implicit HiddenStdConv encountering subtype of
typedesc[Base] parameter on overload resolution, since this will anyway never
reach codegen. This change effectively fixes compiler bug for:

  iterator it(T: typedesc[Base]) = ...
  for s in it(SubclassOfBase): ...

Where HiddenStdConv triggered implicit instantiation of variable of type
typedesc[Base] in for transform, that eventually fails at getUniqueType, that
refuses to work for typedesc.
2015-05-13 19:10:54 +02:00
Araq
26eae7d00e fixes #2470, fixes #1354 2015-04-28 20:21:53 +02:00
Araq
b34bd3b163 fixes #2577 2015-04-27 23:11:58 +02:00
Araq
e40b667891 fixes regression: overloading by 'var' 2015-04-25 23:17:00 +02:00
Araq
2c91e999e2 fixes #2600 2015-04-25 23:16:58 +02:00
Araq
e55f5d1fd4 fixes #2505, fixes #1853, fixes #2522 2015-04-20 21:25:49 +02:00
Araq
49471440eb fixes #2481 2015-04-10 14:03:49 +02:00
Araq
3a9500f7b1 fixes #2500 2015-04-10 14:03:47 +02:00
Araq
78f371c03a first implementation of overloading of '='; missing: rewriting let/var sections 2015-04-06 23:21:51 +02:00
Araq
f767e1749e don't store the scope for routines 2015-04-04 01:19:31 +02:00
Araq
019faf00bf fixes #2397 2015-03-25 11:50:38 +01:00
Araq
3bcafb1c3a concept example from the manual now works again 2015-03-23 13:10:19 +01:00
Araq
0d804c2052 fixes #2266 2015-03-22 01:38:14 +01:00
Araq
508e8bd686 fixes #2221 2015-03-21 20:38:26 +01:00
Araq
13cdad8819 fixes #2304 2015-03-16 23:02:18 +01:00
Araq
d4bca58b7d fixes #1809; implements overloading based on 'var T' 2015-03-14 22:21:43 +01:00
Araq
1efb5174f2 fixes #2220; #2219; breaks #2022; for #2022 callsite needs to be used 2015-03-10 12:32:46 +01:00
Araq
d58212ccc5 fixes #1940; code breakage! stricter template evaluation 2015-03-07 15:43:36 +01:00
Araq
cac259cdfb fixes #2229 2015-03-05 20:39:25 +01:00
Araq
24ae0c387f some love for the testsuite; fixed regressions 2015-03-01 21:41:21 +01:00
Araq
2ebeb0bd21 fixes #2169 2015-02-28 20:13:21 +01:00
Araq
d4a8bde617 added a comment 2015-02-26 02:05:24 +01:00
Araq
9053799bf5 fixes #2216 2015-02-26 02:05:23 +01:00
Araq
fce2ff161e tsigtypeop.nim works again 2015-02-25 21:36:43 +01:00
Araq
b7f11b8b0a fixes #2125 2015-02-18 13:44:01 +01:00
def
e686ca2523 Fix a few more warnings 2015-02-17 02:22:30 +01:00
Federico Ceratto
c95f6f117a Fix typos 2015-02-15 16:06:06 +00:00
Araq
442dc30922 fixes endless recursion with static type parameters 2015-02-14 21:47:21 +01:00
Araq
61db30727b Aporia compiles again (disabling thread analysis is horrible!) 2015-02-12 15:14:46 +01:00
Araq
c4eddb3fda ordinary parameters can follow a varargs parameter 2015-02-12 14:56:57 +01:00
Araq
247af96b00 cleaned up some tests 2015-02-10 20:19:45 +01:00
Araq
ab5b8f5391 fixes #1988 2015-01-31 16:23:38 +01:00
Araq
abb738146a revert to old behaviour: tuple field names are not ignored anymore; fixes #1920 2015-01-18 02:33:44 +01:00
Araq
20774ad43c fixes the integer conversion regressions 2015-01-13 20:56:31 +01:00
Andreas Rumpf
e2faa40a4e Merge pull request #1841 from skyfex/devel
Add support for big 'u64 literals and remove SomeUInt from unsigned.nim
2015-01-12 01:44:57 +01:00
Zahary Karadjov
13a18663d2 fix #1859 2015-01-05 03:53:31 +02:00
Audun Wilhelmsen
7592c9cf22 Added safe implicit conversion of uint8 to int16..int64, uint16 to int32..int64 etc.
Added two new tests for unsigned conversions and comparisons between signed numbers.
2015-01-03 00:10:07 +01:00
Zahary Karadjov
05cbbac4e5 support for static params in the user defined type classes 2015-01-02 23:58:24 +02:00
Zahary Karadjov
2f90be13e2 fix #1820 2015-01-02 23:58:24 +02:00
Zahary Karadjov
b21b72dc14 fix #1049 2015-01-02 23:58:24 +02:00
Zahary Karadjov
70b5efa98d fix #544 2015-01-02 23:58:24 +02:00
Zahary Karadjov
ad65a20391 fix #419 2015-01-02 23:58:24 +02:00
Zahary Karadjov
13e07f5d66 bugfix: don't treat generic types with different static params as the same type 2014-12-31 04:20:32 +02:00
Zahary Karadjov
da36a847a7 fix #1789 (binding to static params during generic proc sigmatch) 2014-12-31 01:45:23 +02:00
Araq
27f1743793 release of 0.10.2 2014-12-29 10:32:00 +01:00
Araq
9280473eb1 fixes #1120 2014-12-25 17:22:41 +01:00
Araq
c0cc62c6b1 tuple field names are ignored 2014-12-23 17:54:22 +01:00
Araq
a1c217a2db fixes #1684 2014-11-30 02:56:26 +01:00
Araq
abb2c21047 fixes #836 2014-11-19 23:40:26 +01:00
Araq
729e048a32 fixes #940 2014-11-17 08:28:24 +01:00