noncom
10/30/2017, 10:17 AMebonet
10/30/2017, 10:31 AMebonet
10/30/2017, 10:37 AMgildor
10/30/2017, 10:42 AMebonet
10/30/2017, 11:41 AMebonet
10/30/2017, 11:41 AMevanchooly
10/30/2017, 12:25 PMval
fields?ebonet
10/30/2017, 12:26 PMVesko
10/30/2017, 12:31 PMval
fields, this can be verified quite easy when checking the output bytecodeVesko
10/30/2017, 12:31 PMSerGnat
10/30/2017, 1:49 PMCannot access 'm': it is protected in 'Abstr'
In the following code:
abstract class Abstr{
protected abstract fun m()
}
class Child : Abstr(){
private val subChild: Abstr = Child()
override fun m() = subChild.m()// Error:(12, 18) Kotlin: Cannot access 'm': it is protected in 'Abstr'
}
Is it a bug?
The question also was asked here: https://stackoverflow.com/questions/47015707/kotlin-cannot-access-protected-abstract-method/Greg Stepniewski
10/30/2017, 1:51 PMmike_shysh
10/30/2017, 1:56 PMmike_shysh
10/30/2017, 1:57 PMSerGnat
10/30/2017, 1:57 PMsubChild: Child
, then it compiles okkarelpeeters
10/30/2017, 1:57 PMmike_shysh
10/30/2017, 1:57 PMmike_shysh
10/30/2017, 1:58 PMmike_shysh
10/30/2017, 1:58 PMmike_shysh
10/30/2017, 1:58 PMpastjean
10/30/2017, 2:00 PMmike_shysh
10/30/2017, 2:00 PMGreg Stepniewski
10/30/2017, 2:01 PMtschuchort
10/30/2017, 2:02 PMmike_shysh
10/30/2017, 2:04 PMSerGnat
10/30/2017, 2:07 PMGreg Stepniewski
10/30/2017, 2:14 PMprotected — same as private + visible in subclasses tooand my interpretation is that it should only allow subclasses to call superclass methods within the same instance, but I might be wrong
poohbar
10/30/2017, 3:56 PMsourceDir
for the Kotlin plugin, should I do that?
And why does it replace the execution for the java compiler plugin in the guide?
<!-- Replacing default-compile as it is treated specially by maven -->
How specially? What? What does that mean?mortda-m
10/30/2017, 4:23 PMkarelpeeters
10/30/2017, 4:25 PMfun <T> Iterable<T>.foo() = ...