File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
main/scala/com/github/triangle
test/scala/com/github/scala_android/crud Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ object Field {
167
167
168
168
169
169
/** Defines a default for a field value, used when copied from {@link Unit}. */
170
- def default [T ](value : => T ): PartialFieldAccess [T ] = readOnly[Unit ,T ](r => if (r == Unit ) Some (value) else None )
170
+ def default [T ](value : => T ): PartialFieldAccess [T ] = readOnly[Any ,T ](r => if (r == Unit ) Some (value) else None )
171
171
172
172
/**
173
173
* Defines a flow for a field value from a Readable type to a Writable type.
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class CursorFieldAccessSpec extends ShouldMatchers {
28
28
def shouldGetCriteriaCorrectly {
29
29
val field = Field [Long ](sqliteCriteria(" age" ), default(19 ))
30
30
val criteria = new SQLiteCriteria
31
- field.copy(None , criteria)
31
+ field.copy(Unit , criteria)
32
32
criteria.selection should be (" age=19" )
33
33
}
34
34
}
You can’t perform that action at this time.
0 commit comments