reflect: document which Convert() cases are still unimplemented
Этот коммит содержится в:
родитель
855e12df51
коммит
6b73b5e486
1 изменённых файлов: 6 добавлений и 3 удалений
|
@ -1154,8 +1154,6 @@ func convertOp(src Value, typ Type) (Value, bool) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(dgryski): Implement other cases
|
|
||||||
|
|
||||||
case String:
|
case String:
|
||||||
rtype := typ.(*rawType)
|
rtype := typ.(*rawType)
|
||||||
if typ.Kind() == Slice && !rtype.elem().isNamed() {
|
if typ.Kind() == Slice && !rtype.elem().isNamed() {
|
||||||
|
@ -1166,9 +1164,14 @@ func convertOp(src Value, typ Type) (Value, bool) {
|
||||||
return cvtStringRunes(src, rtype), true
|
return cvtStringRunes(src, rtype), true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(dgryski): Unimplemented:
|
||||||
|
// Chan
|
||||||
|
// Identical underlying types
|
||||||
|
// Non-defined pointers types with same underlying base type
|
||||||
|
// Interface <-> Type conversions
|
||||||
|
|
||||||
return Value{}, false
|
return Value{}, false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче