Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[feature] stdlib: overload + for string concatenation

CHANGELOG `+` is overloaded for string concatenation
  • Loading branch information...
commit f91bbc3321084a561821f266d73308b740a0fb0e 1 parent 453e7bf
@OpaOnWindowsNow OpaOnWindowsNow authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 stdlib/core/initial.opa
View
6 stdlib/core/initial.opa
@@ -1,5 +1,5 @@
/*
- Copyright © 2011 MLstate
+ Copyright © 2011, 2012 MLstate
This file is part of OPA.
@@ -228,12 +228,12 @@ rem = %% Bslpervasives.int_rem %%
/**
* Magic overloaded operator '+'
- * This operator is defined only on [int], [float]
+ * This operator is defined only on [int], [float], [string]
* The overloading of this operator is resolved at compile time, which means that
* if the context does not give enough type information for inferring one of the supported type,
* this will raise an error during the compilation, inviting the user to add a type annotation.
**/
-@specialize_strict(Int.`+`, Float.`+`)
+@specialize_strict(Int.`+`, Float.`+`,String.`^`)
`+`(_ : 'number, _ : 'number) : 'number = @fail
/**

0 comments on commit f91bbc3

Please sign in to comment.
Something went wrong with that request. Please try again.