1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>Bugs_pre_410 (Bugs_pre_410)</title>
<link rel="stylesheet" href="odoc.css"/><meta charset="utf-8"/>
<meta name="generator" content="odoc 2.1.1"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<script src="highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body class="odoc">
<header class="odoc-preamble">
<h1>Module <code><span>Bugs_pre_410</span></code></h1>
</header>
<div class="odoc-content">
<div class="odoc-spec">
<div class="spec type" id="type-opt'" class="anchored">
<a href="#type-opt'" class="anchor"></a>
<code>
<span><span class="keyword">type</span> <span>'a opt'</span></span>
<span> = <span>int option</span></span>
</code>
</div>
</div>
<div class="odoc-spec">
<div class="spec value" id="val-foo'" class="anchored">
<a href="#val-foo'" class="anchor"></a>
<code>
<span><span class="keyword">val</span> foo' :
<span>?bar:<span class="type-var">'a</span>
<span class="arrow">-></span>
</span> <span>unit <span class="arrow">-></span></span>
unit
</span>
</code>
</div>
<div class="spec-doc">
<p>Similar to <code>Bugs</code>, but the printed type of
<code>~bar</code> should be <code>int</code>, not <code>'a</code>
. This probably requires fixing in the compiler. See
<a href="https://github.com/ocaml/odoc/pull/230#issuecomment-433226807">
https://github.com/ocaml/odoc/pull/230#issuecomment-433226807
</a>.
</p>
</div>
</div>
</div>
</body>
</html>
|