Skip to content

Commit 53bde5c

Browse files
committed
empty methods not available in 0.3
1 parent 3bc40c6 commit 53bde5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gentypes.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -621,11 +621,11 @@ _typedefault(::Type{Duration}) = Duration(0,0)
621621

622622
#Default method to get the "pkg/type" string from a generated DataType.
623623
#Extended by the generated modules.
624-
function _typerepr end
624+
_typerepr{T}(::Type{T}) = error("Not a ROS type")
625625

626-
#Default methods to get the request/response datatypes for a generated service
627-
function _srv_reqtype end
628-
function _srv_resptype end
626+
#Default method to get the request/response datatypes for a generated service
627+
_srv_reqtype{T}( ::Type{T}) = error("Not a ROS Service type")
628+
_srv_resptype{T}(::Type{T}) = error("Not a ROS Service type")
629629

630630
#Accessors for the package name
631631
_name(p::ROSPackage) = p.name

0 commit comments

Comments
 (0)