Effective visibility: concise diagnostic messages #KT-10761 Fixed

Also #KT-9760 Fixed

Original commit: 1bbc46729c
This commit is contained in:
Mikhail Glukhikh
2016-02-10 14:44:47 +03:00
committed by Mikhail Glukhikh
parent 46253721f1
commit cb985c0d13
8 changed files with 19 additions and 19 deletions
@@ -52,22 +52,22 @@ Exit code: ABORT
------------------------------------------
COMPILATION FAILED
Cannot access 'A': it is 'private' in file
Subclass effective visibility 'public' should be the same or less permissive than its superclass effective visibility 'private'
Generic effective visibility 'public' should be the same or less permissive than its type parameter bound effective visibility 'private'
'public' subclass exposes its 'private' supertype A
'public' generic exposes its 'private' parameter bound type A
Cannot access 'A': it is 'private' in file
Cannot access 'A': it is 'private' in file
Function effective visibility 'public' should be the same or less permissive than its parameter type effective visibility 'private'
'public' function exposes its 'private' parameter type A
Cannot access 'A': it is 'private' in file
Cannot access 'A': it is 'private' in file
Function effective visibility 'public' should be the same or less permissive than its return type effective visibility 'private'
'public' function exposes its 'private' return type A
Cannot access 'A': it is 'private' in file
Cannot access 'A': it is 'private' in file
Cannot access 'A': it is 'private' in file
Cannot access 'A': it is 'private' in file
Function effective visibility 'public' should be the same or less permissive than its return type effective visibility 'private'
'public' function exposes its 'private' return type A
Cannot access 'A': it is 'private' in file
Cannot access 'A': it is 'private' in file
Function effective visibility 'public' should be the same or less permissive than its return type effective visibility 'private'
'public' function exposes its 'private' return type A
================ Step #2 =================
@@ -33,8 +33,8 @@ Exit code: ABORT
------------------------------------------
COMPILATION FAILED
Cannot access 'A': it is 'private' in file
Subclass effective visibility 'public' should be the same or less permissive than its superclass effective visibility 'private'
Function effective visibility 'public' should be the same or less permissive than its return type effective visibility 'private'
'public' subclass exposes its 'private' supertype A
'public' function exposes its 'private' return type A
Cannot access 'A': it is 'private' in file
Cannot access 'A': it is 'private' in file
Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type kotlin.Any?
@@ -25,7 +25,7 @@ Exit code: ABORT
------------------------------------------
COMPILATION FAILED
Cannot access 'A': it is 'private' in file
Subclass effective visibility 'public' should be the same or less permissive than its superclass effective visibility 'private'
'public' subclass exposes its 'private' supertype A
================ Step #2 =================
@@ -25,7 +25,7 @@ Exit code: ABORT
------------------------------------------
COMPILATION FAILED
Cannot access 'A': it is 'private' in file
Subclass effective visibility 'public' should be the same or less permissive than its superclass effective visibility 'private'
'public' subclass exposes its 'private' supertype A
Cannot access 'A': it is 'private' in file
================ Step #2 =================