mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
bind,cmd/gomobile: require Go 1.7
Bump the minimum required version of Go to 1.7. This removes version specific code and makes sure users have the latest mobile related fixes to Go applied. Also, this change is necessary when runtime.KeepAlive is introduced in a later CL. Change-Id: I8441a28aef7f645379fbd8f00edabe3c3fb219de Reviewed-on: https://go-review.googlesource.com/35953 Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
+1
-1
@@ -983,7 +983,7 @@ func (g *JavaGen) genConst(o *types.Const) {
|
||||
// TODO(hyangah): should const names use upper cases + "_"?
|
||||
// TODO(hyangah): check invalid names.
|
||||
jType := g.javaType(o.Type())
|
||||
val := constExactString(o)
|
||||
val := o.Val().ExactString()
|
||||
switch b := o.Type().(*types.Basic); b.Kind() {
|
||||
case types.Int64, types.UntypedInt:
|
||||
i, exact := constant.Int64Val(o.Val())
|
||||
|
||||
Reference in New Issue
Block a user