Roman Levenstein
984fcef576
Produce an error for generic parameters of functions if those parameters are not used in function signature.
...
If a generic parameter is not referred to from a function signature, it can never be inferred and thus such a function can never be invoked.
We now produce the following error:
generic parameter 'T' is not used in function signature
func f8<T> (x: Int) {}
This commit takes Jordan't comments on r28181 into account:
- it produces a shorter error message
- it does not change the compiler_crashers_fixed test and add a new expected error instead
Swift SVN r28194
2015-05-06 02:20:39 +00:00
..
2015-01-19 06:52:49 +00:00
2015-01-29 21:51:06 +00:00
2015-05-03 20:27:29 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-04-13 22:51:34 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-04-23 00:20:05 +00:00
2015-05-05 00:30:51 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-04-24 19:03:30 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-04-29 00:23:15 +00:00
2015-04-24 19:03:30 +00:00
2015-01-19 06:52:49 +00:00
2015-03-26 04:50:51 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-03-29 22:08:44 +00:00
2015-03-17 01:52:59 +00:00
2015-01-27 21:01:04 +00:00
2015-05-03 22:13:02 +00:00
2015-01-30 21:31:48 +00:00
2015-04-23 00:20:05 +00:00
2015-04-20 12:55:56 +00:00
2015-04-02 21:14:28 +00:00
2015-01-30 19:32:20 +00:00
2015-04-26 20:42:19 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-05-03 21:46:05 +00:00
2015-01-19 06:52:49 +00:00
2015-01-30 21:31:48 +00:00
2015-01-29 21:51:06 +00:00
2015-01-19 06:52:49 +00:00
2015-05-01 04:42:56 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-02-07 03:56:11 +00:00
2015-01-19 06:52:49 +00:00
2015-01-30 19:32:20 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-01-19 06:52:49 +00:00
2015-05-02 08:03:15 +00:00
2015-05-06 02:20:39 +00:00
2015-01-19 06:52:49 +00:00
2015-01-29 21:51:06 +00:00