miha-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.