質問編集履歴

2

コードを修正

2018/06/07 08:06

投稿

tetsukay
tetsukay

スコア232

test CHANGED
File without changes
test CHANGED
@@ -54,11 +54,11 @@
54
54
 
55
55
 
56
56
 
57
- showBook(data.books[3])
57
+ showBook(data.books[1])
58
58
 
59
59
 
60
60
 
61
- fun showBook(book: Book) {
61
+ fun showBook(book: Data.Book) {
62
62
 
63
63
  println("author: ${}") // data.author にアクセスしたい(dataまるごとは渡したくない)
64
64
 

1

表現を修正

2018/06/07 08:06

投稿

tetsukay
tetsukay

スコア232

test CHANGED
File without changes
test CHANGED
@@ -74,6 +74,6 @@
74
74
 
75
75
 
76
76
 
77
- `inner class Book()` と定義すると参照できるようになりますが,kotshiによって生成されたJavaコードが `is not an enclosing class` のエラーでコンパイルできません
77
+ `inner class Book()` と定義すると参照できるようになりますが,kotshiによって生成されたJavaコードが `is not an enclosing class` のエラーでコンパイルできなくなり
78
78
 
79
79
  [Jacksonでは `BackReference` がある](http://d.hatena.ne.jp/sardine/20150612) ようなのですが,なにか良い解決策があればご教示いただきたく思います.