mikehearn
03/28/2017, 1:11 PMmikehearn
03/28/2017, 1:13 PMkirillrakhman
03/28/2017, 1:38 PMdh44t
03/28/2017, 1:50 PMdh44t
03/28/2017, 1:51 PMorangy
dh44t
03/28/2017, 2:14 PMsksk
03/28/2017, 4:47 PMorangy
orangy
sksk
03/28/2017, 4:49 PMorangy
mbickel
03/29/2017, 12:04 PMs.luhmirins
03/29/2017, 12:16 PMsreich
03/29/2017, 12:27 PMsreich
03/29/2017, 12:27 PMsss
03/29/2017, 1:18 PMmbickel
03/29/2017, 1:21 PMmbickel
03/29/2017, 1:23 PMmiha-x64
03/29/2017, 2:23 PMtypealias UrlsByWidth = SparseArrayCompat<String>
inline fun UrlsByWidth.getForWidth(width: Int) = /* implementation goes here */
/*1*/ @Deprecated(message = "not applicable", level = DeprecationLevel.ERROR) inline fun UrlsByWidth.getForHeight(height: Int) = throw AssertionError()
typealias UrlsByHeight = SparseArrayCompat<String>
/*2*/ inline fun UrlsByHeight.getForHeight(height: Int) = /* implementation goes here */
I was trying to make getForWidth
not applicable to UrlsByHeight
(and vice versa), but (1) and (2) are ‘conflicting overloads’ since their receiver have the same type.nimtiazm
03/29/2017, 3:51 PMnimtiazm
03/29/2017, 3:52 PMsreich
03/29/2017, 4:04 PMsreich
03/29/2017, 4:05 PMcedric
03/29/2017, 4:42 PMTook me a few minutes to figure that out▾
jdiaz
03/29/2017, 5:43 PMkevinmost
03/29/2017, 5:44 PMorangy
trevjones
03/29/2017, 5:52 PMjdiaz
03/29/2017, 5:53 PM